This commit is contained in:
2023-12-08 12:36:24 +01:00
commit e09af15085
18 changed files with 1617 additions and 0 deletions

19
handlers/main.yml Normal file
View File

@@ -0,0 +1,19 @@
---
- name: 'reload service files'
systemd:
daemon_reload: true
listen: gitea_reload_service_files
when: "ansible_facts['service_mgr'] == 'systemd'"
- name: 'remove temporary directory'
file:
path: "{{ _tmpdir.path }}"
state: absent
diff: false
listen: 'gitea_remove_tmpdir'
- name: 'restart gitea'
service:
name: 'gitea'
enabled: true
state: "{{ ansible_facts['is_chroot'] | ternary(omit, 'restarted') }}"