Compare commits

..

2 Commits

Author SHA256 Message Date
heath c421d990aa have bootstrap.sh pull and play bootstrap.yml 2026-07-11 18:16:08 -05:00
heath 0d943ef1cd allow arguments to ansible-pull.sh 2026-07-11 18:11:25 -05:00
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -134,4 +134,4 @@ as_hpf_ans "curl -o \"${HPF_ANS_ansible_pull_sh}\" \"${GIT_REPO_ansible_pull_sh}
as_hpf_ans "chown hpf-ans:hpf-ans \"${HPF_ANS_ansible_pull_sh}\"; chmod ug=rwx,o= \"${HPF_ANS_ansible_pull_sh}\""
# Run ansible-pull to finish up
as_hpf_ans "bin/ansible-pull.sh"
as_hpf_ans "bin/ansible-pull.sh bootstrap.yml"
+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}"