diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2017-12-31 09:58:05 +0100 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2017-12-31 09:58:05 +0100 |
commit | f0e491d5a987d43b87f40a4a7fd019074468876c (patch) | |
tree | 049d4098d308db411043552debaddf7bcafef96c | |
parent | 803ce93bcfd47bfdc084d8302ac5d8385a8e3cc1 (diff) | |
download | playbooks-ansible-f0e491d5a987d43b87f40a4a7fd019074468876c.tar.gz playbooks-ansible-f0e491d5a987d43b87f40a4a7fd019074468876c.tar.xz playbooks-ansible-f0e491d5a987d43b87f40a4a7fd019074468876c.zip |
Add feature to block loop used for playbook and yaml debuging purposes
-rwxr-xr-x | replay | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -22,8 +22,29 @@ ERROR="\e[0m[ \e[91mERROR\e[0m ]" INFO="\e[0m[ \e[93mINFO\e[0m ]" +### +# User command-line options +### +while [[ $# -gt 0 ]] +do + case "$1" in + -d|--debug) + COUNTLIMIT=1 + shift + ;; + *) + echo "Usage: $0 [-d|--debug]" + exit 3 + ;; + esac +done +### +# End +### + + REPLAY=true -COUNT=1 +COUNT=0 pushd $WORKDIR >/dev/null |