From 463cb372596ddab6a384303153e08b8558900f0296996fd2e8b8afc0729bd1ab Mon Sep 17 00:00:00 2001 From: Heath Petersen Date: Sun, 5 Jul 2026 15:57:24 -0500 Subject: [PATCH] bootstrap.sh: add ansible-pull, ansible-pull.sh: use base name of script in log --- bootstrap.sh | 2 +- home_hpf_ans_bin_ansible-pull.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 1b3bdf4..afe4ac6 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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" diff --git a/home_hpf_ans_bin_ansible-pull.sh b/home_hpf_ans_bin_ansible-pull.sh index b2d2d17..58025ed 100644 --- a/home_hpf_ans_bin_ansible-pull.sh +++ b/home_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}"