Skip to content

Commit 746bf10

Browse files
committed
Missing defaults in ansible-tests
The run_ansible.sh was missing default values for couple of parameters potentially causing "unbound variable" error.
1 parent 3addfef commit 746bf10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

container-images/tcib/base/ansible-tests/run_ansible.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
set -euo pipefail
44

55
ANSIBLE_DIR="/var/lib/ansible/ansible"
6+
ANSIBLE_FILE_EXTRA_VARS_PARAM="${ANSIBLE_FILE_EXTRA_VARS_PARAM:-}"
7+
POD_ANSIBLE_PLAYBOOK="${POD_ANSIBLE_PLAYBOOK:-}"
8+
POD_ANSIBLE_EXTRA_VARS="${POD_ANSIBLE_EXTRA_VARS:-}"
9+
POD_ANSIBLE_GIT_REPO="${POD_ANSIBLE_GIT_REPO:-}"
610

711
# Check and set ansible debug verbosity
812
ANSIBLE_DEBUG=""

0 commit comments

Comments
 (0)