Browse Source

Additional optimization parameters for ansible.cfg

Sebastian Jug 8 years ago
parent
commit
3bc3957c4b
1 changed files with 9 additions and 1 deletions
  1. 9 1
      ansible.cfg

+ 9 - 1
ansible.cfg

@@ -16,6 +16,13 @@ host_key_checking = False
 retry_files_enabled = False
 retry_files_save_path = ~/ansible-installer-retries
 nocows = True
+remote_user = root
+roles_path = roles/
+gathering = smart
+fact_caching = jsonfile
+fact_caching_connection = $HOME/ansible/facts
+fact_caching_timeout = 600
+callback_whitelist = profile_tasks
 
 # Uncomment to use the provided BYO inventory
 #hostfile = inventory/byo/hosts
@@ -29,7 +36,8 @@ nocows = True
 # Additional ssh options for OpenShift Ansible
 [ssh_connection]
 pipelining = True
+ssh_args = -o ControlMaster=auto -o ControlPersist=600s
+timeout = 10
 # shorten the ControlPath which is often too long; when it is,
 # ssh connection reuse silently fails, making everything slower.
 control_path = %(directory)s/%%h-%%r
-