Skip to content

Commit

Permalink
Merge pull request ansible#2157 from rlopez133/fix_https_to_httpd
Browse files Browse the repository at this point in the history
adding fixes to change port
  • Loading branch information
rlopez133 authored Jun 28, 2024
2 parents 47ec1ce + f4012ee commit 4861f20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions exercises/ansible_rhel/1.5-handlers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ Let's say we want to ensure the firewall is configured correctly on all web serv
enabled: true
when: inventory_hostname in groups['web']
- name: Allow HTTPS traffic on web servers
- name: Allow HTTP traffic on web servers
ansible.posix.firewalld:
service: https
service: http
permanent: true
state: enabled
when: inventory_hostname in groups['web']
Expand All @@ -114,7 +114,7 @@ Let's say we want to ensure the firewall is configured correctly on all web serv
```

The handler Restart Apache is triggered only if the task “Allow HTTPS traffic on web servers” makes any changes.
The handler Restart Apache is triggered only if the task “Allow HTTP traffic on web servers” makes any changes.

> NOTE: Notice how the name of the handler is used within the notify section of the “Reload Firewall” configuration task. This ensures that the proper handler is executed as there can be multiple handlers within an Ansible playbook.

Expand Down
4 changes: 2 additions & 2 deletions exercises/ansible_rhel/1.7-role/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ Adjust `/home/student/lab_inventory/roles/apache/tasks/main.yml` to include task
state: started
enabled: true
- name: Allow HTTPS traffic on web servers
- name: Allow HTTP traffic on web servers
ansible.posix.firewalld:
service: https
service: http
permanent: true
state: enabled
when: inventory_hostname in groups['web']
Expand Down

0 comments on commit 4861f20

Please sign in to comment.