1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00
ansible_role_gitea/handlers/main.yml

21 lines
442 B
YAML
Raw Normal View History

---
2017-01-10 22:09:34 +01:00
- name: "Restart gitea"
become: true
2022-03-27 05:19:36 +02:00
ansible.builtin.service:
name: gitea
state: restarted
when: ansible_service_mgr == "systemd"
2017-01-10 22:09:34 +01:00
- name: "Reload systemd"
become: true
2022-03-27 05:19:36 +02:00
ansible.builtin.systemd:
daemon_reload: true
when: ansible_service_mgr == "systemd"
2022-09-29 23:09:19 +02:00
- name: "Systemctl restart fail2ban"
become: true
ansible.builtin.systemd:
name: fail2ban
state: restarted
when: ansible_service_mgr == "systemd"