|
@@ -9,8 +9,8 @@
|
|
|
until:
|
|
|
- "glusterfs_pods_wait.results.results[0]['items'] | count > 0"
|
|
|
# There must be as many pods with 'Ready' staus True as there are nodes expecting those pods
|
|
|
- - "glusterfs_pods_wait.results.results[0]['items'] | lib_utils_oo_collect(attribute='status.conditions') | lib_utils_oo_collect(attribute='status', filters={'type': 'Ready'}) | map('bool') | select | list | count == l_glusterfs_count"
|
|
|
+ - "glusterfs_pods_wait.results.results[0]['items'] | lib_utils_oo_collect(attribute='status.conditions') | lib_utils_oo_collect(attribute='status', filters={'type': 'Ready'}) | map('bool') | select | list | count == l_glusterfs_count | int"
|
|
|
delay: 10
|
|
|
retries: "{{ (glusterfs_timeout | int / 10) | int }}"
|
|
|
vars:
|
|
|
- l_glusterfs_count: "{{ glusterfs_count | default(glusterfs_nodes | count) | int }}"
|
|
|
+ l_glusterfs_count: "{{ glusterfs_count | default(glusterfs_nodes | count) }}"
|