Browse Source

Merge pull request #6402 from jmencak/cns-glusterfs_wipe

Check for openshift attribute before using it during CNS install.
Scott Dodson 7 years ago
parent
commit
35cce25b61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml

+ 1 - 1
roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml

@@ -23,7 +23,7 @@
     state: absent
     labels: "{{ glusterfs_nodeselector | oo_dict_to_list_of_dict }}"
   with_items: "{{ groups.all }}"
-  when: glusterfs_wipe
+  when: "'openshift' in hostvars[item] and glusterfs_wipe"
 
 - name: Delete pre-existing GlusterFS config
   file: