From: Ralf Jung Date: Sun, 8 Apr 2018 08:32:00 +0000 (+0200) Subject: make --diff the default X-Git-Url: https://git.ralfj.de/ansible.git/commitdiff_plain/f76b2b698d708dbef33a5135762b51a9c9d1d031?ds=sidebyside make --diff the default --- diff --git a/ansible.cfg b/ansible.cfg index e326777..64ab4cf 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -2,6 +2,9 @@ inventory = hosts stdout_callback = debug +[diff] +always = True + [privilege_escalation] become = True become_ask_pass = True diff --git a/play b/play deleted file mode 100755 index a24d672..0000000 --- a/play +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -set -e - -HOST="$1" -shift - -echo "Playing on $HOST" -ansible-playbook --diff -l "$HOST" "$@" diff --git a/playall b/playall index b4abf6b..8c74d96 100755 --- a/playall +++ b/playall @@ -3,6 +3,6 @@ set -e for HOST in $(fgrep 'all:' hosts | sed 's/.*all: *//g'); do echo "Playing on $HOST" - ansible-playbook --diff -l "$HOST" "$@" + ansible-playbook -l "$HOST" "$@" echo done