diff options
Diffstat (limited to 'playbooks/roles/common/handlers')
-rw-r--r-- | playbooks/roles/common/handlers/main.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/playbooks/roles/common/handlers/main.yml b/playbooks/roles/common/handlers/main.yml new file mode 100644 index 0000000..22b2bec --- /dev/null +++ b/playbooks/roles/common/handlers/main.yml @@ -0,0 +1,25 @@ +--- + +- name: Restart sshd + ansible.builtin.service: + name: sshd + state: restarted + enabled: true + +- name: Reload ufw + ansible.builtin.service: + name: ufw + state: restarted + enabled: true + +- name: Enable fail2ban + ansible.builtin.service: + name: fail2ban + state: restarted + enabled: true + +- name: Enable systemd-timesyncd + ansible.builtin.service: + name: systemd-timesyncd + state: restarted + enabled: true |