Hello,
I have a situation, where the playbook is working fine but the lab is still failing.
Could someone have a look at my lab and see what is occuring:
This is a common thing that will bite people. Yes, you are technically correct in that your playbook ran and did everything you told it to, but this is a prime example of how you can lose points on an exam and fail grading.
Step 7 is where you messed up ...
The file should contain the message HOSTNAME (IPADDRESS) has been customized by Ansible.
Specifically, you forgot the ( and the ) on each side of the IP address. This is one thing I always stress when I used to teach or deliver a course ... you must be exact. You missing that information means it isn't matching what is expected. Now, lots of people argue that isn't a big deal, but if these were configuration settings and the () were important there, the server would fail configuration based on your automated playbook. I've seen several things like that happen in the field when I used to be in consulting.
I bet if you fix the task that creates the content and put the () around the IP address, you will get things right.
This is a common thing that will bite people. Yes, you are technically correct in that your playbook ran and did everything you told it to, but this is a prime example of how you can lose points on an exam and fail grading.
Step 7 is where you messed up ...
The file should contain the message HOSTNAME (IPADDRESS) has been customized by Ansible.
Specifically, you forgot the ( and the ) on each side of the IP address. This is one thing I always stress when I used to teach or deliver a course ... you must be exact. You missing that information means it isn't matching what is expected. Now, lots of people argue that isn't a big deal, but if these were configuration settings and the () were important there, the server would fail configuration based on your automated playbook. I've seen several things like that happen in the field when I used to be in consulting.
I bet if you fix the task that creates the content and put the () around the IP address, you will get things right.
Many thanks!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.