File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
container-images/tcib/base/ansible-tests Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ANSIBLE_FILE_EXTRA_VARS_PARAM="${ANSIBLE_FILE_EXTRA_VARS_PARAM:-}"
77POD_ANSIBLE_PLAYBOOK=" ${POD_ANSIBLE_PLAYBOOK:- } "
88POD_ANSIBLE_EXTRA_VARS=" ${POD_ANSIBLE_EXTRA_VARS:- } "
99POD_ANSIBLE_GIT_REPO=" ${POD_ANSIBLE_GIT_REPO:- } "
10+ POD_ANSIBLE_GIT_BRANCH=" ${POD_ANSIBLE_GIT_BRANCH:- } "
1011
1112# Check and set ansible debug verbosity
1213ANSIBLE_DEBUG=" "
1718# Clone the Ansible repository
1819git clone " $POD_ANSIBLE_GIT_REPO " " $ANSIBLE_DIR "
1920
21+ if [[ -n " $POD_ANSIBLE_GIT_BRANCH " ]]; then
22+ pushd " $ANSIBLE_DIR "
23+ git fetch && git checkout --track origin/${POD_ANSIBLE_GIT_BRANCH}
24+ popd
25+ fi
26+
2027# Handle extra vars file if provided
2128if [[ -n " ${POD_ANSIBLE_FILE_EXTRA_VARS:- } " ]]; then
2229 echo " $POD_ANSIBLE_FILE_EXTRA_VARS " > " $ANSIBLE_DIR /extra_vars.yaml"
You can’t perform that action at this time.
0 commit comments