This reimpliments #6402 which was missed by #6918. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
@@ -49,6 +49,7 @@
state: absent
labels: "{{ glusterfs_nodeselector | lib_utils_oo_dict_to_list_of_dict }}"
with_items: "{{ groups.all }}"
+ when: "'openshift' in hostvars[item]"
- name: Delete pre-existing GlusterFS config
file: