Replace docker-compose restart hack with shell handler hack

The docker-compose integration would start 2 of the same container, which does bad things to things like databases!
This commit is contained in:
Jake Howard
2020-06-28 20:13:12 +01:00
parent 71086ca291
commit 86a398d6b4
34 changed files with 112 additions and 271 deletions

View File

@ -44,14 +44,8 @@
register: git_mirror_config_file
become: true
- name: Cycle gitea container
docker_compose:
project_src: /opt/gitea
pull: true
remove_orphans: true
remove_volumes: true
state: "{{ item }}"
- name: restart gitea
shell:
chdir: /opt/gitea
cmd: "{{ docker_update_command }}"
when: compose_file.changed or gitea_config_file.changed or git_mirror_config_file.changed
loop:
- absent
- present