default ansible-pull to one level of verbose mode
This commit is contained in:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user