From 32ec60b6fe4a344e54301e628ba17390c9d802c6 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 24 Apr 2018 16:04:17 +0200 Subject: [PATCH] Add option to disable validation of docker-compose file Signed-off-by: Knut Ahlers --- defaults/main.yml | 1 + tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index c6e927b..99aadcb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,6 +2,7 @@ docker_compose_reload_minutes: 15 docker_compose_stop_action: down +docker_compose_validate: true docker_compose_config: version: "3" diff --git a/tasks/main.yml b/tasks/main.yml index fe9a072..24b1adc 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -33,7 +33,7 @@ command: docker-compose config -q args: chdir: /etc/docker-compose - when: compose_file.changed + when: compose_file.changed and docker_compose_validate # Install and start services