allow arguments to ansible-pull.sh

This commit is contained in:
2026-07-11 18:11:25 -05:00
parent 1db51f6057
commit 0d943ef1cd
2 changed files with 4 additions and 4 deletions
+4 -4
View File
@@ -7,8 +7,8 @@ GIT_REPO="${GIT_REPO_BASE}.git"
ANSIBLE_PULL_LOG="/var/log/ansible-pull.log"
echo | sudo tee -a "${ANSIBLE_PULL_LOG}"
echo -n "$(basename "${0}"): " | sudo tee -a "${ANSIBLE_PULL_LOG}"
date "+%Y-%m-%d %H:%M:%S" | sudo tee -a "${ANSIBLE_PULL_LOG}"
ansible-pull --only-if-changed -U "${GIT_REPO}" 2>&1 | sudo tee -a "${ANSIBLE_PULL_LOG}"
echo | sudo tee -a "${ANSIBLE_PULL_LOG}"
echo -n "$(basename "${0}"): " | sudo tee -a "${ANSIBLE_PULL_LOG}"
date "+%Y-%m-%d %H:%M:%S" | sudo tee -a "${ANSIBLE_PULL_LOG}"
ansible-pull --only-if-changed --url "${GIT_REPO}" "${@}" 2>&1 | sudo tee -a "${ANSIBLE_PULL_LOG}"