homeserver/roles/tmaurice.gitea/handlers/main.yml
mg 651164f26f Update tmaurice.gitea (#294)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#294
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-01-10 09:01:52 +01:00

17 lines
387 B
YAML

---
- 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"