Skip to content
Snippets Groups Projects
user avatar
Mark Goddard authored
One way to improve the performance of Ansible is through fact caching.
Rather than gather facts in every play, we can configure Ansible to
cache them in a persistent store. An example Ansible configuration for
doing this is as follows:

[defaults]
gathering = smart
fact_caching = jsonfile
fact_caching_connection = ./facts
fact_caching_timeout = 86400

While this mostly just works, there are a few places where we
unconditionally gather facts using the setup module. This change
modifies these to only gather facts when necessary.

We no longer execute the MichaelRigart.interfaces role using become:
true, since it may gather facts and we do not want it to do so as root.
The role uses become where necessary.

Change-Id: I9984a187fc6c0496ada489bb8eef36e44d695aac
Story: 2007492
Task: 39216
e924c99c
History
Name Last commit Last update
..
add-admin-network.yml-cf4b5e6387d0eb3f.yaml
add-custom-config-for-elasticsearch-a762134e51b50f91.yaml
add-ironic-node-serial-console-commands-75f1255d62e05c87.yaml
add-kolla_ansible_venv_extra_requirements-4d4f70b024207ffb.yaml
add-monasca-3e6da709b3b4c269.yaml
add-serial-console-enable-to-post-configure-c61704185c57783d.yaml
add-storm-5d29163b61ef01ce.yaml
add-support-for-configuring-mariadb-646badcc9dd07019.yaml
add-support-for-custom-blazar-conf-c82ee78f2a92d693.yaml
add-support-for-custom-ceilometer-conf-66d907cf3c7ec29b.yaml
add-support-for-custom-cloudkitty-conf-af224caad9cd1ad4.yaml
add-support-for-custom-gnocchi-conf-51b110196f966c32.yaml
add-support-for-custom-group-vars-3760547c3505487d.yaml
add-support-for-global-conf-411316a7250611b4.yaml
add-support-for-haproxy-config-b7b8f331e8adb2e0.yaml
add-variable-docker-registry-datadir-volume-a5ec931a5eb2c59d.yaml
add_support_for_custom_barbican_conf-b94272d73d53aa87.yaml
add_support_for_custom_keepalived_conf-b26a242761c1f5b3.yaml
ansible-2.5-2.7-c06a682f4f07755d.yaml
ansible-2.5-785e3c764f450d09.yaml
ansible-2.6-2.8-ce141db0edb87e1c.yaml
ansible-2.8-2.9-2df006b066704417.yaml
arista-switch-aedc46148506c56e.yaml
ask-vault-pass-b6ced0220384dde1.yaml
avoid-unconditional-fact-gathering-4dfbf96e2111ad51.yaml
bifrost-dib-extra-c4eac903986ec700.yaml
bootproto-52316b6dbc30e98c.yaml
bootstrap-openrc-9aec3d53d0d62c81.yaml
bugfix-update-idrac-role-71ede6900dc000a7.yaml
cacert-514b8645d6912bf9.yaml
centos-8-chrony-bec9d7bc8b346363.yaml
centos-ipa-images-60dde12f2b4f4f8c.yaml
config-galaxy-roles-6bd129824436a983.yaml
db-backup-recovery-d4f1ced2ebd7dac4.yaml
default-target-virtualenv-3a68472f66b7aaf3.yaml
defroute-9bbcff8b2f8abc94.yaml
dell-powerconnect-switch-860fbcbf7e4323ea.yaml
disable-chrony-5f1e4f9db509c42d.yaml
dnf-2071fc40b0d783b6.yaml
docker-custom-config-5103260d5ddb7223.yaml
docker-registry-env-e954a0642555864f.yaml
docker-registry-on-seed-2eb4fb643d6fda9a.yaml
docker-storage-driver-7d560e7d350b14ba.yaml
drop-kolla-ceph-deployment-47095b032085e8f3.yaml
drop-py-2-7-3d0a7f3eb8f11d6b.yaml
feature-automatic-node-rename-fc5fbe0f7c38151c.yaml
feature-update-ironic-driver-info-02371a593ca0f734.yaml
first-official-release-6dff5747d34d161c.yaml
fix-baremetal-serial-autoenable-0ccfec017cf2ddbc.yaml
fix-data-files-path-detection-on-ubuntu-dfa8e4e7a1d3ea27.yaml
fix-dell-physical-network-config-b4eaf752e62eeadb.yaml
fix-image-build-regex-964c8c6359841662.yaml
fix-inspection-when-using-ipxe-9bf6ed9e6456840b.yaml
fix-inspector-ipxe-uefi-86f435ebaf4eee08.yaml
fix-introspection-data-save-cfc83714f66fd63c.yaml
fix-ipa-build-b31fb20ddcbe3ece.yaml
fix-ipa-image-download-3f90f0f40d0feafd.yaml
fix-persistent-sysctls-1aef170599a49608.yaml
fix-post-config-public-eb72f3a692a2be6b.yaml
fix-seed-vm-provision-c432ebfae8bfee8b.yaml
fluentd-custom-inputs-1b911bd229e8a9e4.yaml
host-package-update-c5bddba791754646.yaml
host-run-command-eb98cb077d546551.yaml
ignore-unconfigured-nets-93beaf96f43af1ed.yaml
initial-f71c8e25375afa25.yaml
internal-api-tls-4e7383e6a0262f5f.yaml
ipa-build-dib-packages-5e85baba3294eb65.yaml
kolla-ansible-become-false-95aa88edd3c8c259.yaml
kolla-docker-registry-e1adce280fc17db7.yaml
kolla-external-fqdn-cacert-048aa1299050cfd7.yaml
kolla-inventory-host-vars-7f9dc14c82e3ea20.yaml
kolla-user-group-85bbe8038c3f719c.yaml
manage-lvm-0.1.4-d33b398060232874.yaml
mariabackup-9370d55279c1aa78.yaml
mdadm-ed1d301ad0168e91.yaml
mellanox-switch-cb82a8c278f5e652.yaml
non-shared-ironic-nets-06a43c9b6dea2a77.yaml
openstack-branch-87df0c2f647037c0.yaml
optional-epel-release-92eaf3dc4aa1021b.yaml
package-runtime-files-in-python-package-c3dda2bd32844fdf.yaml
passwords-in-tmp-18e55d5e9b894b4d.yaml
per-host-interfaces-6e548331fa3a4244.yaml
physical-network-disable-discovery-15916760e0a4d0bc.yaml
pip-local-mirror-d9a80257c8441970.yaml
pip_proxy-6c6022b6566dae69.yaml
prevent-resolv.conf-4a09d50f60f3fe28.yaml
quote-escape-vars-3d42c7de8dc39d15.yaml
remove-inspector-manage-firewall-b1117b04a0f6904d.yaml
remove-ironic-drivers-939a9c6afad33e2a.yaml
remove-overcloud-cadvisor-deployment-3866f823cd1dc0b9.yaml
remove-overcloud-prometheus-deployment-75792bba2fc39385.yaml
remove-stop-chrony-1944c6cba72730c4.yaml
remove-storage-mgmt-net-from-controllers-8f9c1d252d9f318b.yaml
restrict-ip-allocation-8e20022110c2283e.yaml
rocky-355875d3f38b0d02.yaml
save-include-exclude-df8cca17da0aa3de.yaml
seed-hypervisor-bootstrap-58bafc1ea0d125bc.yaml
seed-hypervisor-host-package-update-2ad745a2d9fec134.yaml
seed-hypervisor-lvm-80864721ff42f6a5.yaml
seed-service-upgrade-71b847e3658a1948.yaml