From f9ee2fcc05aa8f7c589719444fecae5ecbddab5ff5d6a363b320284e42950195 Mon Sep 17 00:00:00 2001 From: Heath Petersen Date: Sun, 2 Aug 2026 09:54:44 -0500 Subject: [PATCH] x --- files/home/hpf-ans/bin/ansible-pull.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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