From 3a9d0c5535d8ba2e8583d1ab6ff66b2950a59c6e Mon Sep 17 00:00:00 2001 From: jtudelag Date: Thu, 8 Mar 2018 16:54:43 +0100 Subject: [PATCH] Tune ansible.cfg Based on the OpenShift one: https://docs.openshift.com/container-platform/3.7/scaling_performance/install_practices.html#scaling-performance-install-optimization * Increases number of forks. * Disables host_key_checking * Smart gathering facts * Fact caching jsonfile * Enables profile_tasks callback * Mutliplexes ssh connections (ControlMaster) * Enables pipelining --- ansible.cfg | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ansible.cfg b/ansible.cfg index 102e48708..e4c21b5db 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -9,6 +9,15 @@ roles_path = ./roles # Be sure the user running Ansible has permissions on the logfile log_path = /var/log/ansible.log +forks = 20 +host_key_checking = False +gathering = smart +fact_caching = jsonfile +fact_caching_connection = $HOME/ansible/facts +fact_caching_timeout = 600 +nocows = 1 +callback_whitelist = profile_tasks + # Disable them in the context of https://review.openstack.org/#/c/469644 retry_files_enabled = False @@ -20,6 +29,8 @@ timeout = 30 [ssh_connection] # see: https://github.com/ansible/ansible/issues/11536 control_path = %(directory)s/%%h-%%r-%%p +ssh_args = -o ControlMaster=auto -o ControlPersist=600s +pipelining = True # Option to retry failed ssh executions if the failure is encountered in ssh itself retries = 5