ansible配置参数优化

pull/215/head
gjmzj 2018-05-29 11:07:38 +08:00
parent 54652adfa2
commit 6e9eb6085f
1 changed files with 7 additions and 7 deletions

View File

@ -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