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:
@ -32,14 +32,8 @@
|
||||
register: config_file
|
||||
become: true
|
||||
|
||||
- name: Cycle tt-rss container
|
||||
docker_compose:
|
||||
project_src: /opt/tt-rss
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
remove_volumes: true
|
||||
state: "{{ item }}"
|
||||
- name: restart tt-rss
|
||||
shell:
|
||||
chdir: /opt/tt-rss
|
||||
cmd: "{{ docker_update_command }}"
|
||||
when: compose_file.changed or config_file.changed
|
||||
loop:
|
||||
- absent
|
||||
- present
|
||||
|
Reference in New Issue
Block a user