8d2caac546
In Ansible 2.x the fact gathering process includes facts gathered
by facter [1] and ohai [2]if they are available. While this may be
useful in some environment, OpenStack-Ansible does not make use of
any of these facts in any of its playbooks/roles and the facts
gathered are therefore just an extra overhead.
This patch removes the facter and aohai gathering subsets. On a
test AIO this reduced the execution time for fact gathering to the
host and all running containers from 1m5s to 6s.
[1] https://docs.puppet.com/facter/
[2] https://docs.chef.io/ohai.html
This patch also re-implements the selective fact gathering in
run-playbooks that was implemented in
I348a4b7dfe70d56a64899246daf65ea834a75d2a but unintentionally
removed in 9be0662c4f
Change-Id: I9bfee53571f3dc3a0b0a0950242008e815722180
32 lines
658 B
INI
32 lines
658 B
INI
[defaults]
|
|
# Set the role path
|
|
roles_path = /etc/ansible/roles:roles
|
|
retry_files_enabled = False
|
|
|
|
# Additional plugins
|
|
lookup_plugins = /etc/ansible/roles/plugins/lookup
|
|
filter_plugins = /etc/ansible/roles/plugins/filter
|
|
action_plugins = /etc/ansible/roles/plugins/action
|
|
|
|
library = /etc/ansible/roles/plugins/library
|
|
|
|
# Fact caching
|
|
gathering = smart
|
|
gather_subset = !facter,!ohai
|
|
fact_caching = jsonfile
|
|
fact_caching_connection = /etc/openstack_deploy/ansible_facts
|
|
fact_caching_timeout = 86400
|
|
|
|
inventory = inventory
|
|
host_key_checking = False
|
|
|
|
# Set color options
|
|
nocolor = 0
|
|
|
|
# SSH timeout
|
|
timeout = 6
|
|
transport = ssh
|
|
|
|
[ssh_connection]
|
|
pipelining = True
|