mirror of
https://github.com/roles-ansible/ansible_role_gitea.git
synced 2024-08-16 11:39:50 +02:00
20 lines
442 B
YAML
20 lines
442 B
YAML
---
|
|
- name: "Restart gitea"
|
|
become: true
|
|
ansible.builtin.service:
|
|
name: gitea
|
|
state: restarted
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
- name: "Reload systemd"
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
- name: "systemctl restart fail2ban"
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: fail2ban
|
|
state: restarted
|
|
when: ansible_service_mgr == "systemd"
|