2017-05-16 20:42:39 +08:00
|
|
|
# Comments inside this file must be set BEFORE the option.
|
|
|
|
# NOT after the option, otherwise the comment will be interpreted as a value to that option.
|
|
|
|
|
2014-05-11 09:52:26 +08:00
|
|
|
[defaults]
|
2014-10-10 21:41:31 +08:00
|
|
|
ansible_managed = Please do not change this file directly since it is managed by Ansible and will be overwritten
|
2019-02-19 00:38:35 +08:00
|
|
|
library = ./library
|
2015-12-16 23:11:14 +08:00
|
|
|
action_plugins = plugins/actions
|
2018-03-13 19:30:09 +08:00
|
|
|
callback_plugins = plugins/callback
|
2016-10-26 00:27:49 +08:00
|
|
|
roles_path = ./roles
|
2017-04-25 16:10:09 +08:00
|
|
|
# Be sure the user running Ansible has permissions on the logfile
|
|
|
|
log_path = /var/log/ansible.log
|
2017-05-11 14:57:53 +08:00
|
|
|
|
2018-03-08 23:54:43 +08:00
|
|
|
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
|
|
|
|
|
2017-06-22 21:55:19 +08:00
|
|
|
# Disable them in the context of https://review.openstack.org/#/c/469644
|
|
|
|
retry_files_enabled = False
|
|
|
|
|
2017-09-06 17:25:47 +08:00
|
|
|
# This is the default SSH timeout to use on connection attempts
|
|
|
|
# CI slaves are slow so by setting a higher value we can avoid the following error:
|
|
|
|
# Timeout (12s) waiting for privilege escalation prompt:
|
|
|
|
timeout = 30
|
|
|
|
|
2017-05-11 14:57:53 +08:00
|
|
|
[ssh_connection]
|
2017-05-16 20:39:03 +08:00
|
|
|
# see: https://github.com/ansible/ansible/issues/11536
|
2017-05-31 00:25:29 +08:00
|
|
|
control_path = %(directory)s/%%h-%%r-%%p
|
2019-06-15 05:31:39 +08:00
|
|
|
ssh_args = -o ControlMaster=auto -o ControlPersist=600s -o PreferredAuthentications=publickey
|
|
|
|
pipelining = True
|
2018-01-23 21:38:35 +08:00
|
|
|
|
|
|
|
# Option to retry failed ssh executions if the failure is encountered in ssh itself
|
|
|
|
retries = 5
|