2021-01-21 09:07:19 +01:00
|
|
|
---
|
|
|
|
- name: "Restart gitea"
|
2023-04-25 16:25:50 +02:00
|
|
|
become: true
|
2022-01-10 09:01:52 +01:00
|
|
|
ansible.builtin.service:
|
2021-01-21 09:07:19 +01:00
|
|
|
name: gitea
|
|
|
|
state: restarted
|
|
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
|
|
|
|
- name: "Reload systemd"
|
2023-04-25 16:25:50 +02:00
|
|
|
become: true
|
2022-01-10 09:01:52 +01:00
|
|
|
ansible.builtin.systemd:
|
2021-01-21 09:07:19 +01:00
|
|
|
daemon_reload: true
|
|
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
|
2023-04-25 16:25:50 +02:00
|
|
|
- name: "Systemctl restart fail2ban"
|
|
|
|
become: true
|
|
|
|
ansible.builtin.systemd:
|
2021-01-21 09:07:19 +01:00
|
|
|
name: fail2ban
|
|
|
|
state: restarted
|
|
|
|
when: ansible_service_mgr == "systemd"
|