From 2f502294286babb4f376a95dee53f1c13bcbdc92 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Thu, 12 Nov 2026 20:55:34 +0400 Subject: [PATCH] docker_service: let the dry run of a new service pass In check mode nothing is written, so for a service that is not on the host yet the restart task finds no project directory and fails the whole dry run. Ignore errors there in check mode, as the compose task already does. Assisted-by: Claude:opus-5-5 --- ansible/roles/docker_service/tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/docker_service/tasks/main.yaml b/ansible/roles/docker_service/tasks/main.yaml index 78eed78..6e144ac 100644 --- a/ansible/roles/docker_service/tasks/main.yaml +++ b/ansible/roles/docker_service/tasks/main.yaml @@ -111,6 +111,8 @@ - service_restart_on_change - template_result is changed or file_result is changed - compose_result is not changed + # A first dry run has no project directory to restart yet + ignore_errors: "{{ ansible_check_mode }}" - name: Wait before health check ansible.builtin.pause: