The Q is asking me to fix the issue as it should print architecture but instead prints variable not defined. When I run the script it is printing x86_64 and I don’t see any error and the “check playbook” validation still fails. Not sure if I am missing something here and what is the correct expectations.
I just checked this task and it is validating correctly. Check your work with the solution.
I haven’t changed anything in the playbook…as soon as I run it is printing the architecture value and not seeing any “variable is not defined” error and still check playbook option shows it as failed
That is strange. Try resetting the lab. Sometimes they glitch but I’ve never heard the answer has already been completed.
I just re-launched the lab and still the same issue. As per solution tab, the requirement is to set gather_facts or modify ansible.cfg
You may either configure gather_facts
to true in the playbook or modify the local ansible.cfg
file.
It looks like the issue here is with ansible.cfg as it set to default and thats the reason I am not seeing any error
explicit - do not gather by default, must say gather_facts: True
#gathering = implicit