make --diff the default
authorRalf Jung <post@ralfj.de>
Sun, 8 Apr 2018 08:32:00 +0000 (10:32 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 8 Apr 2018 08:32:27 +0000 (10:32 +0200)
ansible.cfg
play [deleted file]
playall

index e326777..64ab4cf 100644 (file)
@@ -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 (executable)
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 (executable)
--- 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