diff --git a/files/home/hpf-ans/bin/ansible-pull.sh b/files/home/hpf-ans/bin/ansible-pull.sh index e093648..3ea50b3 100644 --- a/files/home/hpf-ans/bin/ansible-pull.sh +++ b/files/home/hpf-ans/bin/ansible-pull.sh @@ -1,7 +1,11 @@ #!/usr/bin/env bash +if [ -r /etc/ansible-pull.sh.conf ] ; then + . /etc/ansible-pull.sh.conf +fi + SCRIPT_NAME="$(basename "${0}")" -GIT_REPO_BRANCH="production" +GIT_REPO_BRANCH="${GIT_REPO_BRANCH:-production}" OIC_FLAG="--only-if-changed" # - Process command line @@ -60,4 +64,4 @@ echo echo "${SCRIPT_NAME}: $(date "+%Y-%m-%d %H:%M:%S") ----------------------------------------" # - Do our work -ansible-pull ${OIC_FLAG} --url "${GIT_REPO}" --checkout "${GIT_REPO_BRANCH}" "${@}" \ No newline at end of file +echo ansible-pull ${OIC_FLAG} --url "${GIT_REPO}" --checkout "${GIT_REPO_BRANCH}" "${@}" \ No newline at end of file