default ansible-pull to one level of verbose mode

This commit is contained in:
2026-08-21 15:42:52 -05:00
parent a935e484d9
commit 4665903b01
2 changed files with 12 additions and 1 deletions
+6 -1
View File
@@ -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}" "${@}"
ansible-pull ${OIC_FLAG} ${VERBOSE_FLAG} --url "${GIT_REPO}" --checkout "${GIT_REPO_BRANCH}" "${@}"
+6
View File
@@ -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