Tracy_Baker
Starfighter Starfighter
Starfighter
  • 426 Views

An issue with Red Hat Enterprise Linux Automation with Ansible 9.0 (RH294), lab 4.7

An issue with Red Hat Enterprise Linux Automation with Ansible 9.0 (RH294), lab 4.7, step 7:

Define the restart web service handler.

When triggered, this task should restart the web service defined by the web_service variable, defined in the vars.yml file.

Add a handlers section to the end of the play:

  handlers:
    - name: restart web service
      ansible.builtin.service:
        name: "{{ web_service }}"
        state: restarted

The issue is that it is using the ansible.builtin.firewalld module to configure firewalld. This does work; however, up to now, the module that's been used is ansible.posix.firewalld

If the ansible-navigator doc -m stdout ansible.builtin.firewalld command is used, you'll see that it brings up ANSIBLE.POSIX.FIREWALLD.

Even the Ansible documentation page points to ansible.posix.firewalld when ansible.builtin.firewalld is entered as a search term.

We should be consistent when teaching the students. If ansible.posix.firewalld has been used until now, then ansible.posix.firewalld should continue to be used.

(Perhaps ansible.builtin.firewalld is deprecated?)

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
Labels (4)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.