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