From ed6b70422e807c035fbff3da4cff684b267f63ff Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 13 Apr 2020 19:03:43 +0200 Subject: [PATCH] Add debug var check --- plays/post_delete.yml | 1 + plays/post_deploy.yml | 1 + plays/pre_deploy.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/plays/post_delete.yml b/plays/post_delete.yml index 7e40d2f..2aba0fd 100644 --- a/plays/post_delete.yml +++ b/plays/post_delete.yml @@ -12,6 +12,7 @@ # /var/lib/dokku/data/deploy.d/vars.yml file to activate a debug vars dump - name: Include debug tasks include: ./lib/debug.yml + when: debug is defined - name: Remove deploy.d folder file: diff --git a/plays/post_deploy.yml b/plays/post_deploy.yml index 33268f1..01503cb 100644 --- a/plays/post_deploy.yml +++ b/plays/post_deploy.yml @@ -9,6 +9,7 @@ # /var/lib/dokku/data/deploy.d/vars.yml file to activate a debug vars dump - name: Include debug tasks include: ./lib/debug.yml + when: debug is defined - name: Include http tasks include: ./lib/http.yml diff --git a/plays/pre_deploy.yml b/plays/pre_deploy.yml index ad794bd..4dcf156 100644 --- a/plays/pre_deploy.yml +++ b/plays/pre_deploy.yml @@ -12,6 +12,7 @@ # /var/lib/dokku/data/deploy.d/vars.yml file to activate a debug vars dump - name: Include debug tasks include: ./lib/debug.yml + when: debug is defined - name: Include domain tasks include: ./lib/domain.yml