This commit is contained in:
2026-08-02 09:54:44 -05:00
parent 316e6018fc
commit f9ee2fcc05
+6 -2
View File
@@ -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}" "${@}"
echo ansible-pull ${OIC_FLAG} --url "${GIT_REPO}" --checkout "${GIT_REPO_BRANCH}" "${@}"