From dea210e653064197709ba6946f50ca6ae14b15a9 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 14 Apr 2020 13:53:32 +0200 Subject: [PATCH] Implement standard debugging technique --- plays/commonlib/vars.yml | 8 ++++++++ plays/postdeploy/lib/http.yml | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/plays/commonlib/vars.yml b/plays/commonlib/vars.yml index 4cca6d3..f847e4c 100644 --- a/plays/commonlib/vars.yml +++ b/plays/commonlib/vars.yml @@ -58,3 +58,11 @@ mariadb_user: "mariadb", hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}", } + +- name: Debug variable dictionaries + debug: + msg: "{{ item }}" + with_items: + - "{{ config }}" + - "{{ dokku }}" + when: debug is defined and debug == true diff --git a/plays/postdeploy/lib/http.yml b/plays/postdeploy/lib/http.yml index 71a2ad2..98d46c5 100644 --- a/plays/postdeploy/lib/http.yml +++ b/plays/postdeploy/lib/http.yml @@ -1,8 +1,4 @@ --- -- name: DEBUG - debug: - msg: "{{ config }}" - - name: Set HTTP 80 port proxy dokku_ports: app: "{{ dokku.app }}"