summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs
diff options
context:
space:
mode:
authorMangirdas <m.judeikis@gmail.com>2018-02-01 11:07:16 +0000
committerMangirdas <m.judeikis@gmail.com>2018-02-02 13:55:38 +0000
commitac122861b8173b98659609c47b3e04e2c8a12546 (patch)
treefb3fae26def19ff1eff349fabd072c30ba229e1d /roles/openshift_storage_glusterfs
parent1a58f7fc7622e3e96dab0b45737203ae89af8e76 (diff)
downloadopenshift-ac122861b8173b98659609c47b3e04e2c8a12546.tar.gz
openshift-ac122861b8173b98659609c47b3e04e2c8a12546.tar.bz2
openshift-ac122861b8173b98659609c47b3e04e2c8a12546.tar.xz
openshift-ac122861b8173b98659609c47b3e04e2c8a12546.zip
dynamic inventory bug when group exists but its empty
Diffstat (limited to 'roles/openshift_storage_glusterfs')
-rw-r--r--roles/openshift_storage_glusterfs/tasks/glusterfs_registry.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_storage_glusterfs/tasks/glusterfs_registry.yml b/roles/openshift_storage_glusterfs/tasks/glusterfs_registry.yml
index befacb04f..10c29fd37 100644
--- a/roles/openshift_storage_glusterfs/tasks/glusterfs_registry.yml
+++ b/roles/openshift_storage_glusterfs/tasks/glusterfs_registry.yml
@@ -48,7 +48,7 @@
glusterfs_heketi_ssh_sudo: "{{ openshift_storage_glusterfs_registry_heketi_ssh_sudo | bool }}"
glusterfs_heketi_ssh_keyfile: "{{ openshift_storage_glusterfs_registry_heketi_ssh_keyfile }}"
glusterfs_heketi_fstab: "{{ openshift_storage_glusterfs_registry_heketi_fstab }}"
- glusterfs_nodes: "{% if groups.glusterfs_registry is defined %}{% set nodes = groups.glusterfs_registry %}{% elif 'groups.glusterfs' is defined %}{% set nodes = groups.glusterfs %}{% else %}{% set nodes = '[]' %}{% endif %}{{ nodes }}"
+ glusterfs_nodes: "{% if groups.glusterfs_registry is defined and groups['glusterfs_registry'] | length > 0 %}{% set nodes = groups.glusterfs_registry %}{% elif 'groups.glusterfs' is defined and groups['glusterfs'] | length > 0 %}{% set nodes = groups.glusterfs %}{% else %}{% set nodes = '[]' %}{% endif %}{{ nodes }}"
- include_tasks: glusterfs_common.yml
when: