diff options
author | Russell Teague <rteague@redhat.com> | 2017-10-11 10:44:35 -0400 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-10-11 10:44:35 -0400 |
commit | 884dbaeb7d3d0a4cda08f064fda3bd8f50bffdc1 (patch) | |
tree | 3ad7aadebad0c7b1fb64a9666a52ee3a78753cb2 /playbooks/common/openshift-cluster | |
parent | b35eb14f85fab4a8f1411feb43a563b19c73c438 (diff) | |
download | openshift-884dbaeb7d3d0a4cda08f064fda3bd8f50bffdc1.tar.gz openshift-884dbaeb7d3d0a4cda08f064fda3bd8f50bffdc1.tar.bz2 openshift-884dbaeb7d3d0a4cda08f064fda3bd8f50bffdc1.tar.xz openshift-884dbaeb7d3d0a4cda08f064fda3bd8f50bffdc1.zip |
Ensure host was reached for proper conditional validation
If a host was unreachable during module setup, facts will not be
initialized properly and will result in later failures when stepping
through host groups. Verification that 'openshift' is defined will skip
any hosts which were previously unreachable and did not have facts
initialized.
Fixes 1499254
https://bugzilla.redhat.com/show_bug.cgi?id=1499254
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml b/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml index 72de63070..fc1cbf32a 100644 --- a/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml +++ b/playbooks/common/openshift-cluster/upgrades/initialize_nodes_to_upgrade.yml @@ -30,6 +30,7 @@ ansible_become: "{{ g_sudo | default(omit) }}" with_items: " {{ groups['oo_nodes_to_config'] }}" when: + - hostvars[item].openshift is defined - hostvars[item].openshift.common.hostname in nodes_to_upgrade.results.results[0]['items'] | map(attribute='metadata.name') | list changed_when: false |