Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix firewall playbook example to not break connection to ansible-1 #2140

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions exercises/ansible_rhel/1.5-handlers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ Let's say we want to ensure the firewall is configured correctly on all web serv
ansible.builtin.dnf:
name: firewalld
state: present
when: inventory_hostname in groups['web']

- name: Ensure firewalld is running
ansible.builtin.service:
name: firewalld
state: started
enabled: true
when: inventory_hostname in groups['web']

- name: Allow HTTPS traffic on web servers
ansible.posix.firewalld:
Expand Down Expand Up @@ -144,14 +146,14 @@ ok: [node1]
ok: [node3]

TASK [Install firewalld] *******************************************************
changed: [ansible-1]
skipping: [ansible-1]
changed: [node2]
changed: [node1]
changed: [node3]

TASK [Ensure firewalld is running] *********************************************
skipping: [ansible-1]
changed: [node3]
changed: [ansible-1]
changed: [node2]
changed: [node1]

Expand Down