Fix #53: New docker compose down in Ansible fix (#58)
Infrastructure / Check and run Ansbile playbooks (push) Failing after 1m59s
Details
Infrastructure / Check and run Ansbile playbooks (push) Failing after 1m59s
Details
Only run docker compose down when project files exist. Reviewed-on: #58
This commit is contained in:
parent
94a836f135
commit
b532c40bd1
|
@ -8,7 +8,12 @@
|
||||||
ansible.builtin.wait_for_connection:
|
ansible.builtin.wait_for_connection:
|
||||||
timeout: 300
|
timeout: 300
|
||||||
|
|
||||||
|
- name: Check if project exists
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "$HOME/{{ app }}"
|
||||||
|
register: project
|
||||||
- name: Docker compose down
|
- name: Docker compose down
|
||||||
|
when: project.stat.exists
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "$HOME/{{ app }}"
|
project_src: "$HOME/{{ app }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
Loading…
Reference in New Issue