]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Tune ansible.cfg
authorjtudelag <jtudelag@redhat.com>
Thu, 8 Mar 2018 15:54:43 +0000 (16:54 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 14 Mar 2018 12:51:13 +0000 (13:51 +0100)
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

index 102e487087501e5a34c8924df0f2673c49c2979a..e4c21b5db1c9d2ed538bd2d9184d966f4d3d9537 100644 (file)
@@ -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