2015-03-01 00:27:04 -05:00
|
|
|
# config file for ansible -- http://ansible.com/
|
|
|
|
|
# ==============================================
|
|
|
|
|
|
|
|
|
|
# This config file provides examples for running
|
|
|
|
|
# the OpenShift playbooks with the provided
|
2017-02-01 10:28:05 -05:00
|
|
|
# inventory scripts.
|
2015-03-01 00:27:04 -05:00
|
|
|
|
|
|
|
|
[defaults]
|
|
|
|
|
# Set the log_path
|
2018-07-18 14:28:14 -04:00
|
|
|
log_path = ~/openshift-ansible.log
|
2017-02-01 10:28:05 -05:00
|
|
|
|
|
|
|
|
# Additional default options for OpenShift Ansible
|
|
|
|
|
forks = 20
|
|
|
|
|
host_key_checking = False
|
|
|
|
|
retry_files_enabled = False
|
2017-06-13 12:18:24 -04:00
|
|
|
retry_files_save_path = ~/ansible-installer-retries
|
2017-02-01 10:28:05 -05:00
|
|
|
nocows = True
|
2017-07-11 14:14:06 -04:00
|
|
|
remote_user = root
|
2023-04-11 00:58:01 +08:00
|
|
|
remote_tmp = /tmp/.ansible-tmp
|
2017-07-11 14:14:06 -04:00
|
|
|
roles_path = roles/
|
|
|
|
|
gathering = smart
|
|
|
|
|
fact_caching = jsonfile
|
|
|
|
|
fact_caching_connection = $HOME/ansible/facts
|
|
|
|
|
fact_caching_timeout = 600
|
2022-09-29 23:15:14 -04:00
|
|
|
callback_enabled = profile_tasks
|
2017-12-13 18:25:39 +00:00
|
|
|
inventory_ignore_extensions = secrets.py, .pyc, .cfg, .crt, .ini
|
2017-11-01 11:43:08 +01:00
|
|
|
# work around privilege escalation timeouts in ansible:
|
|
|
|
|
timeout = 30
|
2015-03-01 00:27:04 -05:00
|
|
|
|
2017-12-08 08:42:32 -05:00
|
|
|
# Uncomment to use the provided example inventory
|
|
|
|
|
#inventory = inventory/hosts.example
|
2017-02-01 10:28:05 -05:00
|
|
|
|
2017-11-10 14:51:52 -05:00
|
|
|
[inventory]
|
|
|
|
|
# fail more helpfully when the inventory file does not parse (Ansible 2.4+)
|
|
|
|
|
unparsed_is_failed=true
|
|
|
|
|
|
2017-02-01 10:28:05 -05:00
|
|
|
# Additional ssh options for OpenShift Ansible
|
|
|
|
|
[ssh_connection]
|
2019-03-25 12:33:59 -04:00
|
|
|
retries = 15
|
2017-02-01 10:28:05 -05:00
|
|
|
pipelining = True
|
2017-07-11 14:14:06 -04:00
|
|
|
ssh_args = -o ControlMaster=auto -o ControlPersist=600s
|
|
|
|
|
timeout = 10
|
2017-07-06 18:01:12 -04:00
|
|
|
# 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
|