bootstrap.sh: add ansible-pull, ansible-pull.sh: use base name of script in log
This commit is contained in:
+1
-1
@@ -132,4 +132,4 @@ if [ ! -f "${f}" ] ; then
|
||||
fi
|
||||
|
||||
# Run ansible-pull to finish up
|
||||
#as_hpf_ans "ansible-pull --only-if-changed -U \"${GIT_REPO}\" 2>&1 | sudo tee -a \"${ANSIBLE_PULL_LOG}\""
|
||||
as_hpf_ans "bin/ansible-pull.sh"
|
||||
|
||||
@@ -8,7 +8,7 @@ GIT_REPO="${GIT_REPO_BASE}.git"
|
||||
ANSIBLE_PULL_LOG="/var/log/ansible-pull.log"
|
||||
|
||||
echo | sudo tee -a "${ANSIBLE_PULL_LOG}"
|
||||
echo -n "${0}: " | 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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user