default ansible-pull to one level of verbose mode
This commit is contained in:
@@ -7,6 +7,7 @@ fi
|
|||||||
SCRIPT_NAME="$(basename "${0}")"
|
SCRIPT_NAME="$(basename "${0}")"
|
||||||
GIT_REPO_BRANCH="${GIT_REPO_BRANCH:-production}"
|
GIT_REPO_BRANCH="${GIT_REPO_BRANCH:-production}"
|
||||||
OIC_FLAG="--only-if-changed"
|
OIC_FLAG="--only-if-changed"
|
||||||
|
VERBOSE_FLAG="--verbose"
|
||||||
|
|
||||||
# - Process command line
|
# - Process command line
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
@@ -25,6 +26,10 @@ while [ $# -gt 0 ]; do
|
|||||||
shift 1
|
shift 1
|
||||||
OIC_FLAG=""
|
OIC_FLAG=""
|
||||||
;;
|
;;
|
||||||
|
-q|--quiet)
|
||||||
|
shift 1
|
||||||
|
VERBOSE_FLAG=""
|
||||||
|
;;
|
||||||
--)
|
--)
|
||||||
shift 1
|
shift 1
|
||||||
break
|
break
|
||||||
@@ -64,4 +69,4 @@ echo
|
|||||||
echo "${SCRIPT_NAME}: $(date "+%Y-%m-%d %H:%M:%S") ----------------------------------------"
|
echo "${SCRIPT_NAME}: $(date "+%Y-%m-%d %H:%M:%S") ----------------------------------------"
|
||||||
|
|
||||||
# - Do our work
|
# - 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
|
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
|
heath
|
||||||
authorized_keys:
|
authorized_keys:
|
||||||
- heath@hpetersenfamily.com
|
- heath@hpetersenfamily.com
|
||||||
|
|||||||
Reference in New Issue
Block a user