Skip to content

Commit

Permalink
Merge pull request #2140 from larmbuster/devel
Browse files Browse the repository at this point in the history
Fix firewall playbook example to not break connection to ansible-1
  • Loading branch information
IPvSean authored Jun 25, 2024
2 parents a01fafa + 466299c commit 3cd00f9
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 3cd00f9

Please sign in to comment.