Description of problem:
OpenShift Facts should not be called on all hosts when only a single group is being modified.
Example when running redeploy-etcd-ca.yml or redeploy-etcd-certificates.yml openshift facts is gathered on all node hosts causing the installer to take to much unneed time to redploy etcd certs.
Version-Release number of the following components:
└──> rpm -q openshift-ansible
└──> rpm -q ansible
└──> ansible --version
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/cloud-user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]
Steps to Reproduce:
1. $ ansible-playbook -i <inventory_file> \
Openshift facts gets call 2 times and ran on all nodes listed in hosts file
facts are only run on etcd hosts.
Thanks, we're aware of the problem and we'll make sure that we fix this as part of a larger effort to refactor playbooks into smaller components.
PR Created: https://github.com/openshift/openshift-ansible/pull/7078
Verify this bug with openshift-ansible-3.10.0-0.46.0.git.0.85c3afd.el7.noarch.
Tried with the following several playbooks, no useless "Gathering Facts" or "Verify Requirements" tasks run on the nodes now.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.