From ddaca7c29ae7805dcd0129d38ae37855de6dd5f6 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Thu, 13 Oct 2016 17:48:10 +0100 Subject: [PATCH] Add more diagnostic info to Ansible playbook execution This information is useful when trying to understand what's been passed to the playbook execution. Change-Id: I386b184068dbcd2ec83ee0286c80ddfc6e59b459 --- test-ansible-functional.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-ansible-functional.sh b/test-ansible-functional.sh index be40d9cc..9211623f 100755 --- a/test-ansible-functional.sh +++ b/test-ansible-functional.sh @@ -63,6 +63,10 @@ function execute_ansible_playbook { CMD_TO_EXECUTE="ansible-playbook ${TEST_PLAYBOOK} $@ ${ANSIBLE_CLI_PARAMETERS}" echo "Executing: ${CMD_TO_EXECUTE}" + echo "With:" + echo " ANSIBLE_INVENTORY: ${ANSIBLE_INVENTORY}" + echo " ANSIBLE_LOG_PATH: ${ANSIBLE_LOG_PATH}" + ${CMD_TO_EXECUTE} }