You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/ansible_rhel/1.5-handlers/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ Handlers are used for tasks that should only run when notified by another task.
83
83
84
84
Let's say we want to ensure the firewall is configured correctly on all web servers and then reload the firewall service to apply any new settings. We'll define a handler that reloads the firewall service and is notified by a task ^that ensures the desired firewall rules are in place. Add the following tasks to the existing playbook to install firewalld and enable firewalld and reload the service with the help of handlers.
85
85
86
+
{% raw %}
86
87
87
88
```yaml
88
89
---
@@ -141,6 +142,8 @@ Let's say we want to ensure the firewall is configured correctly on all web serv
141
142
142
143
```
143
144
145
+
{% endraw %}
146
+
144
147
The handler "Reload Firewall" is triggered only if the task “Allow HTTP traffic on web servers” makes any changes.
0 commit comments