This task was assigned for me today. I think I made what the task asked to do, but it’s still marked as failed. The template path in text was httpd/templates/index.html.j2, but on validation is shown only ‘template’. Can you kindly check?
@francilio thanks for reporting this. Thanks is just a typo in error message but validation is checking the correct location, could you share your KKE username we can re-check your answer.
How to update hostname in templates/index.html.js ? Is there other thing I have to change?
I used ansible_facts but not working
[root@stapp03 html]# cat index.html
This file was created using Ansible on {{ansible_facts[‘hostname’]}}
Also it is mentioned to use inventory_hostname?
Also please make sure not to hard code the server name inside the template. Instead, use inventory_hostname variable to fetch the correct value.
@Inderpreet@Tej-Singh-Rana. I did the task as per the details . I did not check the permissions…Can you please reassign the task once. It was a silly mistake in permissions.