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 e3267775f64d8aa0274e38271884ec335c760689..64ab4cf0fcb99e2e662feace86c54c3b45ab834a 100644 (file)
@@ -2,6 +2,9 @@
 inventory = hosts
 stdout_callback = debug
 
 inventory = hosts
 stdout_callback = debug
 
+[diff]
+always = True
+
 [privilege_escalation]
 become = True
 become_ask_pass = 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 b4abf6b3be257100117e8176abafb72c20727650..8c74d962a9f041324f01b25388d9c8063ef52153 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"
 
 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
   echo
 done