소스 검색

Merge pull request #6402 from jmencak/cns-glusterfs_wipe

Check for openshift attribute before using it during CNS install.
Scott Dodson 7 년 전
부모
커밋
35cce25b61
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: