Skip to content

Commit

Permalink
Merge pull request #72 from djmitche/only-on-failure
Browse files Browse the repository at this point in the history
only send email on failure (exit code 1)
  • Loading branch information
Mikhail Sobolev committed Jan 19, 2015
2 parents aa203ad + 88acb81 commit 267a4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/base/templates/run-ansible-pull.sh.j2
Expand Up @@ -24,7 +24,7 @@ ansible-pull \
RESULT=$?
set -e

if [ $RESULT -ne 0 ]; then
if [ $RESULT -eq 1 ]; then
echo "ansible-pull run on on "$(uname -n)" failed."
echo
cat $OUTPUT
Expand Down

0 comments on commit 267a4da

Please sign in to comment.