Day 91: Ansible Lineinfile Module taskfailed

I failed this task with the following message:

“- file ‘/var/www/html/index.html’ having incorrect permissions on stapp01”

However, when I curled all three app servers, I was able to see the same index.html content for all of them and permissions also added correctly, but the task still failed.


Could you please take a look and let me know why I failed this task? I have attached my playbook please have a look and helpme.

refer to this