This commit is contained in:
2023-12-08 12:44:32 +01:00
commit 14409872b6
24 changed files with 1071 additions and 0 deletions

17
handlers/main.yml Normal file
View File

@@ -0,0 +1,17 @@
---
- name: "Restart gitea"
ansible.builtin.service:
name: gitea
state: restarted
when: ansible_service_mgr == "systemd"
- name: "Reload systemd"
ansible.builtin.systemd:
daemon_reload: true
when: ansible_service_mgr == "systemd"
- name: "Restart fail2ban"
ansible.builtin.service:
name: fail2ban
state: restarted
when: ansible_service_mgr == "systemd"