2019-03-16 12:51:32 +01:00
|
|
|
---
|
2017-01-10 22:09:34 +01:00
|
|
|
- name: "Restart gitea"
|
2021-03-22 21:21:25 +01:00
|
|
|
become: true
|
2022-03-27 05:19:36 +02:00
|
|
|
ansible.builtin.service:
|
2019-03-16 12:51:32 +01:00
|
|
|
name: gitea
|
|
|
|
state: restarted
|
|
|
|
when: ansible_service_mgr == "systemd"
|
2017-01-10 22:09:34 +01:00
|
|
|
|
|
|
|
- name: "Reload systemd"
|
2021-03-22 21:21:25 +01:00
|
|
|
become: true
|
2022-03-27 05:19:36 +02:00
|
|
|
ansible.builtin.systemd:
|
2019-03-16 12:51:32 +01:00
|
|
|
daemon_reload: true
|
|
|
|
when: ansible_service_mgr == "systemd"
|
2019-03-08 13:12:16 +01:00
|
|
|
|
2022-09-29 23:09:19 +02:00
|
|
|
- name: "Systemctl restart fail2ban"
|
2021-03-22 21:21:25 +01:00
|
|
|
become: true
|
|
|
|
ansible.builtin.systemd:
|
2019-03-16 12:51:32 +01:00
|
|
|
name: fail2ban
|
2019-03-08 13:12:16 +01:00
|
|
|
state: restarted
|
2019-03-16 12:51:32 +01:00
|
|
|
when: ansible_service_mgr == "systemd"
|