aboutsummaryrefslogtreecommitdiffstats
path: root/ansible.cfg
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-09-30 19:42:49 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-09-30 20:04:05 +0200
commite724d7a1abfde2f874720048d33ac834c49cdf6e (patch)
tree60df30b62359a8ef5f23ec3eb94997dd22c116f8 /ansible.cfg
parent125d5a727d78863d8f9c2f5906425e0b1eb26651 (diff)
downloadlabitat-ansible-e724d7a1abfde2f874720048d33ac834c49cdf6e.tar.gz
labitat-ansible-e724d7a1abfde2f874720048d33ac834c49cdf6e.tar.xz
labitat-ansible-e724d7a1abfde2f874720048d33ac834c49cdf6e.zip
Make it easier to run locally
Now you just need ansible-playbook <playbook> when running ansible from your workstation. However when running ansible on the target machine it's a good idea to add "-clocal". Otherwise ansible will ssh to itself :/
Diffstat (limited to 'ansible.cfg')
-rw-r--r--ansible.cfg13
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible.cfg b/ansible.cfg
new file mode 100644
index 0000000..903d823
--- /dev/null
+++ b/ansible.cfg
@@ -0,0 +1,13 @@
+[defaults]
+inventory = inventory
+hash_behaviour = merge
+error_on_missing_handler = True
+
+[ssh_connection]
+pipelining = True
+
+[privilege_escalation]
+become = True
+become_method = sudo
+become_user = root
+become_ask_pass = False