Commit 40ef0191 by Max Rothman

Add verbose option to aid debugging failed builds

parent b44db909
...@@ -23,7 +23,13 @@ export PYTHONUNBUFFERED=1 ...@@ -23,7 +23,13 @@ export PYTHONUNBUFFERED=1
export BOTO_CONFIG=/var/lib/jenkins/${aws_account}.boto export BOTO_CONFIG=/var/lib/jenkins/${aws_account}.boto
run_ansible() { run_ansible() {
ansible-playbook $@ if [[ "$VERBOSE" == "true" ]]; then
verbose_arg='-vvv'
else
verbose_arg=''
fi
ansible-playbook $verbose_arg $@
ret=$? ret=$?
if [[ $ret -ne 0 ]]; then if [[ $ret -ne 0 ]]; then
exit $ret exit $ret
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment