From 0e41e51763c54c650d43ca28c8595f0d58a163ae Mon Sep 17 00:00:00 2001 From: Jiri Mencak Date: Fri, 8 Dec 2017 16:35:02 +0100 Subject: Check for openshift attribute before using it during CNS install. Fixes: BZ1523681 --- roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/openshift_storage_glusterfs') diff --git a/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml b/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml index 30e83e79b..0c2fcb2c5 100644 --- a/roles/openshift_storage_glusterfs/tasks/glusterfs_deploy.yml +++ b/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: -- cgit v1.2.1