summaryrefslogtreecommitdiffstats
path: root/ansible.cfg
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-07-26 16:26:14 -0400
committerGitHub <noreply@github.com>2017-07-26 16:26:14 -0400
commitd9512d95e8cc645f7dd12ffb0ab22fb80425ec51 (patch)
tree01f04fb1f80b3e7bea60ddbde91eaa4975c90cd0 /ansible.cfg
parent0f6cf67c77e5d581843a21e27e39fb36451d9553 (diff)
parent3bc3957c4b262897d39780d822efa8599ebdd6a7 (diff)
downloadopenshift-d9512d95e8cc645f7dd12ffb0ab22fb80425ec51.tar.gz
openshift-d9512d95e8cc645f7dd12ffb0ab22fb80425ec51.tar.bz2
openshift-d9512d95e8cc645f7dd12ffb0ab22fb80425ec51.tar.xz
openshift-d9512d95e8cc645f7dd12ffb0ab22fb80425ec51.zip
Merge pull request #4738 from sjug/opt_ansible_cfg
Additional optimization parameters for ansible.cfg
Diffstat (limited to 'ansible.cfg')
-rw-r--r--ansible.cfg10
1 files changed, 9 insertions, 1 deletions
diff --git a/ansible.cfg b/ansible.cfg
index 14b77ba0f..589a58e9d 100644
--- a/ansible.cfg
+++ b/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
-