Skip n8n Deploy stack task in check mode
The command module validates args.chdir before honoring check mode, so dry runs fail with ENOENT on the stack dir (file task only pretends to create it). Gate Deploy stack on ansible_check_mode — dry runs should not run docker compose up anyway.
This commit is contained in:
parent
d7ee878393
commit
9358eb3302
1 changed files with 2 additions and 1 deletions
|
|
@ -99,4 +99,5 @@
|
||||||
- name: Deploy stack
|
- name: Deploy stack
|
||||||
command: docker compose up -d
|
command: docker compose up -d
|
||||||
args:
|
args:
|
||||||
chdir: "{{ stack_dir }}"
|
chdir: "{{ stack_dir }}"
|
||||||
|
when: not ansible_check_mode
|
||||||
Loading…
Add table
Add a link
Reference in a new issue