mg
651164f26f
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>
17 lines
387 B
YAML
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"
|