Hi All,
Unfortunately I keep receiving the same error in the Chapter 4 guided exercises (Handling Errors) regarding to the quoting of the variable names in the task names, please see below.
The code that makes up this error can be seen below.
I'm unsure as to why the error is called, I wonder if anyone can help :D.
Kind Regards,
Michael.
You have a wrong whitespace in `ignore_ errors`, instead of `ignore_errors`.
You see the hint in the first line of the error message.
Greetings
Andreas
Also - the package name to install is "httpd" , not "http" !
Hi @MichaelM26
@Punyabrata and @andkra have already provided excellent input and answers to your question
Here is an additional note for you, based on the information they shared:
What they explained aligns with my understanding, and I also believe the Ansible error output points to what needs to be corrected.
Regarding the package name, I encountered a similar error before. When you are unsure about package names, playbook formats, or other details, I recommend using the ansible-doc <modulename> command.
For example, typing ansible-doc dnf will display the documentation for the ansible.dnf.module in your console, as shown below.
To quickly navigate to the "EXAMPLES" section in the documentation, type /EXAMPLE and press Enter. This will take you to the "EXAMPLES" section.
The EXAMPLES section of the dnf module provides numerous sample playbook contents. You can copy and paste these into your playbook or use them as references when creating your own original playbook.
Finally, I’d like to share a personal note. When I was preparing for my RHCE certification, referencing the EXAMPLES section through the ansible-doc command was incredibly helpful for me. Therefore, I highly recommend mastering this technique as you work towards passing your exam.
Please feel free to post any questions in our community at any time. We are always here to support enthusiastic learners like you.
Best regards,
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.