Fix changed state
This commit is contained in:
parent
4735876db2
commit
fbfd0f544e
@ -44,6 +44,8 @@
|
|||||||
state: "{{ 'restarted' if item.changed else docker_compose_state }}"
|
state: "{{ 'restarted' if item.changed else docker_compose_state }}"
|
||||||
loop: "{{ copy_result.results }}"
|
loop: "{{ copy_result.results }}"
|
||||||
when: not item.failed
|
when: not item.failed
|
||||||
|
register: result
|
||||||
|
changed_when: "'Started' in result.stderr"
|
||||||
|
|
||||||
|
|
||||||
- name: Prune docker
|
- name: Prune docker
|
||||||
|
Loading…
Reference in New Issue
Block a user