cancel
Showing results for 
Search instead for 
Did you mean: 
MichaelM26
Mission Specialist
Mission Specialist
  • 321 Views

RH294 Ch4 Lab

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.

MichaelM26_0-1731991877023.png

The code that makes up this error can be seen below.

MichaelM26_0-1731992144332.png

 

I'm unsure as to why the error is called, I wonder if anyone can help :D.

Kind Regards,

Michael.

Labels (1)
0 Kudos
3 Replies
andkra
Flight Engineer Flight Engineer
Flight Engineer
  • 313 Views

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

0 Kudos
Punyabrata
Flight Engineer
Flight Engineer
  • 156 Views

Also - the package name to install is "httpd" , not "http" !

0 Kudos
RH-Yamato
Flight Engineer
Flight Engineer
  • 139 Views

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.

RHYamato_2-1733545697390.png

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.

RHYamato_3-1733545953085.png

RHYamato_5-1733546126890.png

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.

RHYamato_6-1733546215210.png

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,

 

Yamato Sakai
Learning & Development Senior Instructor
Red Hat Global Learning Service
Tags (3)
0 Kudos
Join the discussion
You must log in to join this conversation.