Ansible Blockinfile Module - - seems like you did not use 'blockinfile' module to add data in '/var/www/html/index.html' file

Hi,

I was able to successfully complete the task but got an error “- seems like you did not use ‘blockinfile’ module to add data in ‘/var/www/html/index.html’ file” despite using the blockinfile module.



If needed I could share the yml file for reference.

Regards,
Dipjyoty

@dipjyoty

Hi, Can you send me the yml file? I will take a look.

@Inderpreet , can you please let me if I had any issue in the YAML file.

@Inderpreet can you please update.

Yeah, same with me too. The validation seems to be not working correctly. I can share the yml file if needed.

@Inderpreet any update on this?