ansible-nas/roles/gitea/handlers/main.yml
2022-08-28 16:03:42 +01:00

24 lines
525 B
YAML

---
- name: Restart Gitea
docker_container:
name: "{{ gitea_container_name }}"
restart: true
listen: "restart gitea"
- name: Stop Gitea
docker_container:
name: "{{ gitea_container_name }}"
state: absent
when: gitea_enabled is false
listen:
- "stop gitea"
- "stop disabled applications"
- name: Stop Gitea Mysql
docker_container:
name: "{{ gitea_mysql_container_name }}"
state: absent
when: gitea_enabled is false
listen:
- "stop gitea"
- "stop disabled applications"