From 9358eb3302f20e144c58c985e063591b56a06e3d Mon Sep 17 00:00:00 2001 From: lorentz Date: Tue, 21 Apr 2026 01:37:07 +0000 Subject: [PATCH] Skip n8n Deploy stack task in check mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- playbooks/n8n.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/n8n.yml b/playbooks/n8n.yml index bf551bd..950c613 100644 --- a/playbooks/n8n.yml +++ b/playbooks/n8n.yml @@ -99,4 +99,5 @@ - name: Deploy stack command: docker compose up -d args: - chdir: "{{ stack_dir }}" \ No newline at end of file + chdir: "{{ stack_dir }}" + when: not ansible_check_mode \ No newline at end of file