From 4665903b01abbd967175ce4077288822e999e509777957e163672938c7922e98 Mon Sep 17 00:00:00 2001 From: Heath Petersen Date: Fri, 21 Aug 2026 15:42:52 -0500 Subject: [PATCH] default ansible-pull to one level of verbose mode --- files/home/hpf-ans/bin/ansible-pull.sh | 7 ++++++- scraps/TODO.txt | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/files/home/hpf-ans/bin/ansible-pull.sh b/files/home/hpf-ans/bin/ansible-pull.sh index 131f07e..c762c99 100644 --- a/files/home/hpf-ans/bin/ansible-pull.sh +++ b/files/home/hpf-ans/bin/ansible-pull.sh @@ -7,6 +7,7 @@ fi SCRIPT_NAME="$(basename "${0}")" GIT_REPO_BRANCH="${GIT_REPO_BRANCH:-production}" OIC_FLAG="--only-if-changed" +VERBOSE_FLAG="--verbose" # - Process command line while [ $# -gt 0 ]; do @@ -25,6 +26,10 @@ while [ $# -gt 0 ]; do shift 1 OIC_FLAG="" ;; + -q|--quiet) + shift 1 + VERBOSE_FLAG="" + ;; --) shift 1 break @@ -64,4 +69,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}" "${@}" \ No newline at end of file +ansible-pull ${OIC_FLAG} ${VERBOSE_FLAG} --url "${GIT_REPO}" --checkout "${GIT_REPO_BRANCH}" "${@}" \ No newline at end of file diff --git a/scraps/TODO.txt b/scraps/TODO.txt index 7945d01..e072a67 100644 --- a/scraps/TODO.txt +++ b/scraps/TODO.txt @@ -6,6 +6,12 @@ Manually on each system: iris.heath.hpetersenfamily.com admin-a.hpetersenfamily.com core.mary.hpetersenfamily.com +* ansible-pull.sh + * debug flag to print to stdout +* bootstrap.yml + * change to copy files/home/hpf-ans/bin with all it's contents + + heath authorized_keys: - heath@hpetersenfamily.com