ansible-collection-forgejo/roles/forgejo/handlers/main.yml
Nis Wechselberg 47467b3169
Initial version of the forgejo collection
* Forgejo role for quick deployment in podman
* Forgejo_OAuth module to manage authentication source

Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
2024-12-20 20:43:44 +01:00

56 lines
1.3 KiB
YAML

---
- name: 'Reload forgejo services'
become: true
ansible.builtin.service:
daemon_reload: true
- name: 'Restart forgejo network'
become: true
ansible.builtin.service:
name: '{{ forgejo_network_name }}-network'
state: 'restarted'
notify:
- 'Restart forgejo-db container'
- 'Restart forgejo-app container'
- name: 'Restart forgejo volumes'
become: true
ansible.builtin.service:
name: '{{ item }}'
state: 'restarted'
loop:
- '{{ forgejo_db_volume_name }}-volume'
- '{{ forgejo_app_volume_name }}-volume'
notify:
- 'Restart forgejo-db container'
- 'Restart forgejo-app container'
- name: 'Restart forgejo-db image'
become: true
ansible.builtin.service:
name: 'forgejo-db-image'
state: 'restarted'
notify:
- 'Restart forgejo-db container'
- name: 'Restart forgejo-db container'
become: true
ansible.builtin.service:
name: 'forgejo-db'
state: 'restarted'
notify:
- 'Restart forgejo-app container'
- name: 'Restart forgejo-app image'
become: true
ansible.builtin.service:
name: 'forgejo-app-image'
state: 'restarted'
notify:
- 'Restart forgejo-app container'
- name: 'Restart forgejo-app container'
become: true
ansible.builtin.service:
name: 'forgejo-app'
state: 'restarted'