kayobe/ansible
Mark Goddard e924c99c52 Avoid unconditional fact gathering
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
2020-04-08 16:56:32 +00:00
..
filter_plugins Merge "Convert network MTU to an integer" 2019-02-01 19:14:02 +00:00
group_vars Don't use become for Kolla Ansible 2020-03-31 15:32:10 +01:00
roles Avoid unconditional fact gathering 2020-04-08 16:56:32 +00:00
test_plugins Add a command to check network connectivity between hosts 2017-11-02 12:12:07 +00:00
baremetal-compute-inspect.yml CentOS 8: Add seed and overcloud CI jobs, drop CentOS 7 jobs 2020-03-11 16:36:44 +00:00
baremetal-compute-manage.yml Remove activate-virtualenv and deactivate-virtualenv roles 2020-02-20 15:28:56 +00:00
baremetal-compute-provide.yml Remove activate-virtualenv and deactivate-virtualenv roles 2020-02-20 15:28:56 +00:00
baremetal-compute-rename.yml Update packages in virtualenvs 2019-08-15 11:01:49 +00:00
baremetal-compute-serial-console-post-config.yml Fix baremetal serial console autoenable 2019-10-21 14:16:20 +01:00
baremetal-compute-serial-console.yml Avoid unconditional fact gathering 2020-04-08 16:56:32 +00:00
bootstrap.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
compute-node-discovery.yml Switch to generic package module 2019-12-09 10:21:20 +00:00
compute-node-provide.yml Improve bare metal compute node management 2017-12-13 11:30:26 +00:00
container-image-build.yml Add monasca to image regex list 2018-09-05 13:52:27 +01:00
container-image-builders-check.yml Add an ansible group for container image builders 2017-11-21 17:50:32 +00:00
dell-compute-node-boot-mode.yml use include_tasks and import_playbook instead of include 2019-01-18 12:22:38 +00:00
dell-compute-node-discovery.yml use include_tasks and import_playbook instead of include 2019-01-18 12:22:38 +00:00
dell-compute-node-inventory.yml Remove config-mgmt group, instead use localhost 2017-12-01 11:21:00 +00:00
dell-switch-bmp.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
dev-tools.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
disable-cloud-init.yml Don't restart cloud-init when disabling it 2018-03-20 10:43:02 +00:00
disable-glean.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
disable-selinux.yml Make Kayobe code compatible with Python 3 2020-02-27 11:10:29 +00:00
dnf.yml CentOS 8: Support DNF 2020-03-19 11:23:39 +00:00
docker-devicemapper.yml Use docker_custom_config variable 2019-10-25 17:08:56 +01:00
docker-registry.yml Allow to configure where to deploy a Docker Registry 2019-01-29 15:44:21 +00:00
docker.yml Use docker_custom_config variable 2019-10-25 17:08:56 +01:00
drac-bios.yml Add support for monitoring nodes 2017-05-29 16:52:17 +01:00
drac-boot-order.yml Add support for monitoring nodes 2017-05-29 16:52:17 +01:00
drac-facts.yml Add support for monitoring nodes 2017-05-29 16:52:17 +01:00
dump-config.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
external-net.yml Switch from shade to openstacksdk 2020-02-20 15:28:56 +00:00
host-command-run.yml Stop gathering facts for host command run 2019-11-05 11:59:28 +01:00
host-package-update.yml Add commands to update packages on hosts 2018-08-23 13:40:43 +01:00
idrac-bootstrap-one.yml Updating Jinja filters to conform to Ansible 2.5+ 2019-06-28 16:34:24 +01:00
idrac-bootstrap.yml Switch to generic package module 2019-12-09 10:21:20 +00:00
inspection-store.yml Change reserved keyword 'action' to 'kayobe_action' 2018-05-21 16:00:57 +01:00
ip-allocation.yml Avoid unconditional fact gathering 2020-04-08 16:56:32 +00:00
ip-routing.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
kayobe-ansible-user.yml Avoid unconditional fact gathering 2020-04-08 16:56:32 +00:00
kayobe-target-venv.yml Avoid unconditional fact gathering 2020-04-08 16:56:32 +00:00
kolla-ansible.yml Remove ceph block device support 2020-03-18 10:28:33 +00:00
kolla-bifrost-hostvars.yml Fix kayobe overcloud provision without seed in limit 2019-11-11 09:47:20 +00:00
kolla-bifrost.yml Remove legacy Ironic driver references 2018-11-06 11:34:11 +00:00
kolla-build.yml Make installation of epel-release optional 2018-08-02 15:30:33 +00:00
kolla-host.yml Updating Jinja filters to conform to Ansible 2.5+ 2019-06-28 16:34:24 +01:00
kolla-openstack.yml Remove ceph block device support 2020-03-18 10:28:33 +00:00
kolla-target-venv.yml Avoid unconditional fact gathering 2020-04-08 16:56:32 +00:00
lvm.yml Support configuring LVM on the seed hypervisor 2019-01-11 18:38:34 +00:00
mdadm.yml Add support for configuring software RAID arrays using mdadm 2019-03-26 15:16:20 +00:00
network-connectivity.yml Add a command to check network connectivity between hosts 2017-11-02 12:12:07 +00:00
network.yml Avoid unconditional fact gathering 2020-04-08 16:56:32 +00:00
ntp.yml Skip resmo.ntp role if ntp_service_enabled is false 2020-03-05 16:46:05 +00:00
opensm.yml Change reserved keyword 'action' to 'kayobe_action' 2018-05-21 16:00:57 +01:00
overcloud-bios-raid.yml Updating Jinja filters to conform to Ansible 2.5+ 2019-06-28 16:34:24 +01:00
overcloud-deprovision.yml Updating Jinja filters to conform to Ansible 2.5+ 2019-06-28 16:34:24 +01:00
overcloud-docker-sdk-upgrade.yml Update packages in virtualenvs 2019-08-15 11:01:49 +00:00
overcloud-etc-hosts-fixup.yml RabbitMQ upgrade fails due to stale /etc/hosts 2018-08-20 17:08:46 +01:00
overcloud-extras.yml Remove support for deploying cAdvisor 2019-02-04 13:45:30 +00:00
overcloud-grafana-configure.yml Switch from shade to openstacksdk 2020-02-20 15:28:56 +00:00
overcloud-hardware-inspect.yml Updating Jinja filters to conform to Ansible 2.5+ 2019-06-28 16:34:24 +01:00
overcloud-host-image-workaround-cloud-init.yml Switch to generic package module 2019-12-09 10:21:20 +00:00
overcloud-host-image-workaround-resolv.yml Switch to generic package module 2019-12-09 10:21:20 +00:00
overcloud-introspection-data-save.yml Fix Kayobe overcloud introspection data save 2020-02-21 15:53:07 +00:00
overcloud-introspection-rules-dell-lldp-workaround.yml Switch from shade to openstacksdk 2020-02-20 15:28:56 +00:00
overcloud-introspection-rules.yml Switch from shade to openstacksdk 2020-02-20 15:28:56 +00:00
overcloud-inventory-discover.yml Sort overcloud inventory hosts and groups 2019-08-12 18:14:49 +01:00
overcloud-ipa-build.yml Support installing packages in IPA images 2019-11-28 16:32:30 +00:00
overcloud-ipa-images.yml Switch from shade to openstacksdk 2020-02-20 15:28:56 +00:00
overcloud-provision.yml Updating Jinja filters to conform to Ansible 2.5+ 2019-06-28 16:34:24 +01:00
overcloud-service-config-save.yml Support including and excluding files from config save 2019-02-04 09:21:07 +00:00
physical-network.yml Add support for Arista switches 2019-08-22 16:20:40 +02:00
pip.yml Remove activate-virtualenv and deactivate-virtualenv roles 2020-02-20 15:28:56 +00:00
provision-net.yml Remove activate-virtualenv and deactivate-virtualenv roles 2020-02-20 15:28:56 +00:00
public-openrc.yml Use public FQDN for OS_AUTH_URL in public-openrc.sh 2018-12-10 10:18:57 +00:00
seed-hypervisor-libvirt-host.yml Merge pull request #91 from stackhpc/libvirt-galaxy 2018-01-02 12:59:23 +00:00
seed-introspection-rules.yml Switch from shade to openstacksdk 2020-02-20 15:28:56 +00:00
seed-ipa-build.yml Support installing packages in IPA images 2019-11-28 16:32:30 +00:00
seed-service-upgrade-prep.yml Revert "Workaround: stop bifrost services before seed upgrade" 2019-08-02 12:10:16 +01:00
seed-vm-deprovision.yml Fix seed VM provision failure on Ansible 2.6 2019-01-29 18:55:50 +00:00
seed-vm-provision.yml Update stackhpc.libvirt-vm and stackhpc.libvirt-host roles 2019-01-29 18:55:50 +00:00
snat.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
ssh-known-host.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
swift-block-devices.yml Support for Ceph and Swift storage networks, and improvements to Swift 2019-04-24 12:40:20 +00:00
swift-rings.yml Support for Ceph and Swift storage networks, and improvements to Swift 2019-04-24 12:40:20 +00:00
sysctl.yml Persistent sysctls broken due to missing .conf suffix 2018-07-13 19:36:21 +01:00
users.yml Tag all (well, some of) the things (plays) 2017-12-19 16:58:21 +00:00
wipe-disks.yml Support configuring LVM on the seed hypervisor 2019-01-11 18:38:34 +00:00
yum.yml CentOS 8: Support DNF 2020-03-19 11:23:39 +00:00