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