UPDATE: tagging @Ayman and @kodekloud-support3 since haven’t received a response from KK support and have put myself in vacation mode after having received this identical task 2 consecutive times…
As I’m sure you know, Ansible creates BEGIN/END tags around the around the code it inserts which, by default, are the ‘#’, so I used blockinfile’s ‘marker’ key to create HTML comments instead of shell script comments. In the screenshot below you can see that the curl output reflects the templated text against all 3 app servers…
I don’t want to give away the entire task solution, so I won’t post the screenshot of my complete playbook.yml file here, but I’d be more than happy to send it to you directly if you require more proof to change the task status to Success.