From 6e9eb6085f1d66fe2180292f46031221c778d37d Mon Sep 17 00:00:00 2001 From: gjmzj Date: Tue, 29 May 2018 11:07:38 +0800 Subject: [PATCH] =?UTF-8?q?ansible=E9=85=8D=E7=BD=AE=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible.cfg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index d3b9fbd..af38cc3 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -35,7 +35,7 @@ gathering = smart roles_path = /etc/ansible/roles # uncomment this to disable SSH key host checking -#host_key_checking = False +host_key_checking = False # change the default callback #stdout_callback = skippy @@ -96,7 +96,7 @@ roles_path = /etc/ansible/roles # should not be run on a host. Set this to "False" if you don't want to see these "Skipping" # messages. NOTE: the task header will still be shown regardless of whether or not the # task is skipped. -#display_skipped_hosts = True +display_skipped_hosts = False # by default (as of 1.3), Ansible will raise errors when attempting to dereference # Jinja2 variables that are not set in templates or action lines. Uncomment this line @@ -173,7 +173,7 @@ roles_path = /etc/ansible/roles # You can disable this feature by setting retry_files_enabled to False # and you can change the location of the files by setting retry_files_save_path -#retry_files_enabled = False +retry_files_enabled = False #retry_files_save_path = ~/.ansible-retry @@ -210,7 +210,7 @@ roles_path = /etc/ansible/roles # ssh arguments to use # Leaving off ControlPersist will result in poor performance, so use # paramiko on older platforms rather than removing it -#ssh_args = -o ControlMaster=auto -o ControlPersist=60s +ssh_args = -o ControlMaster=auto -o ControlPersist=3600s # The path to use for the ControlPath sockets. This defaults to # "%(directory)s/ansible-ssh-%%h-%%p-%%r", however on some systems with @@ -221,7 +221,7 @@ roles_path = /etc/ansible/roles # # Example: # control_path = %(directory)s/%%h-%%r -#control_path = %(directory)s/ansible-ssh-%%h-%%p-%%r +control_path = /tmp/ansible-ssh-%%h-%%p-%%r # Enabling pipelining reduces the number of SSH operations required to # execute a module on the remote server. This can result in a significant @@ -231,7 +231,7 @@ roles_path = /etc/ansible/roles # By default, this option is disabled to preserve compatibility with # sudoers configurations that have requiretty (the default on many distros). # -#pipelining = False +pipelining = True # if True, make ansible use scp if the connection type is ssh # (default is sftp) @@ -240,7 +240,7 @@ roles_path = /etc/ansible/roles # if False, sftp will not use batch mode to transfer files. This may cause some # types of file transfer failures impossible to catch however, and should # only be disabled if your sftp version has problems with batch mode -#sftp_batch_mode = False +sftp_batch_mode = True [accelerate] #accelerate_port = 5099