From f76b2b698d708dbef33a5135762b51a9c9d1d031 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 8 Apr 2018 10:32:00 +0200 Subject: [PATCH] make --diff the default --- ansible.cfg | 3 +++ play | 8 -------- playall | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) delete mode 100755 play 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 -- 2.30.2