summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/project.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_kaas/tasks/project.yml')
-rw-r--r--roles/ands_kaas/tasks/project.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/ands_kaas/tasks/project.yml b/roles/ands_kaas/tasks/project.yml
index 149a102..5a83dff 100644
--- a/roles/ands_kaas/tasks/project.yml
+++ b/roles/ands_kaas/tasks/project.yml
@@ -22,14 +22,18 @@
- name: Get information about block volumes
- delegate_to: "{{ groups.masters[0] }}"
+ args:
+ apply:
+ delegate_to: "{{ groups.masters[0] }}"
shell: gluster-block info {{ item.value.volume }}/{{ item.key }} | grep -oP '^GBID:\s*\K.*'
register: iqn_info
with_dict: "{{ kaas_block_volumes }}"
when: item.value.project == kaas_project
- name: Get more information about block volumes
- delegate_to: "{{ groups.masters[0] }}"
+ args:
+ apply:
+ delegate_to: "{{ groups.masters[0] }}"
shell: gluster-block info {{ item.value.volume }}/{{ item.key }} | grep -oP '^EXPORTED NODE.*:\s*\K.*' | tr ' ' '\n'
register: portal_info
with_dict: "{{ kaas_block_volumes }}"