From 6b37ba5e609e069437c6a02855bf8db4814cdcb5 Mon Sep 17 00:00:00 2001 From: snoopy82481 Date: Sat, 5 Nov 2022 20:54:06 -0600 Subject: [PATCH] chore: :zap: Multiple configuration changes (#144) Added yaml stdout for better readability, optimize ssh connections, moved become to correct section --- ansible.cfg | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index bafab4a..12821fe 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,12 +1,23 @@ [defaults] -nocows = True -roles_path = ./roles -inventory = ./hosts.ini +nocows = True +roles_path = ./roles +inventory = ./hosts.ini +stdout_callback = yaml -remote_tmp = $HOME/.ansible/tmp -local_tmp = $HOME/.ansible/tmp -pipelining = True -become = True -host_key_checking = False -deprecation_warnings = False -callback_whitelist = profile_tasks +remote_tmp = $HOME/.ansible/tmp +local_tmp = $HOME/.ansible/tmp +timeout = 60 +host_key_checking = False +deprecation_warnings = False +callback_whitelist = profile_tasks +log_path = ./ansible.log + +[privilege_escalation] +become = True + +[ssh_connection] +scp_if_ssh = smart +retries = 3 +ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o Compression=yes -o ServerAliveInterval=15s +pipelining = True +control_path = %(directory)s/%%h-%%r \ No newline at end of file