From e724d7a1abfde2f874720048d33ac834c49cdf6e Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Sun, 30 Sep 2018 19:42:49 +0200 Subject: Make it easier to run locally Now you just need ansible-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 :/ --- ansible.cfg | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ansible.cfg (limited to 'ansible.cfg') 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 -- cgit v1.2.1