summaryrefslogtreecommitdiffstats
path: root/roles/glusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'roles/glusterfs')
-rw-r--r--roles/glusterfs/tasks/iterate_domains.yml6
-rw-r--r--roles/glusterfs/tasks/volumes.yml6
2 files changed, 8 insertions, 4 deletions
diff --git a/roles/glusterfs/tasks/iterate_domains.yml b/roles/glusterfs/tasks/iterate_domains.yml
index e061652..7378e34 100644
--- a/roles/glusterfs/tasks/iterate_domains.yml
+++ b/roles/glusterfs/tasks/iterate_domains.yml
@@ -1,7 +1,9 @@
- name: Process all storage domains
include_tasks: "iterate_volumes.yml"
- run_once: true
- delegate_to: "{{ groups[domain.servers][0] }}"
+ args:
+ apply:
+ run_once: true
+ delegate_to: "{{ groups[domain.servers][0] }}"
with_items: "{{ glusterfs_domains }}"
loop_control:
loop_var: domain
diff --git a/roles/glusterfs/tasks/volumes.yml b/roles/glusterfs/tasks/volumes.yml
index 1a85378..96363b8 100644
--- a/roles/glusterfs/tasks/volumes.yml
+++ b/roles/glusterfs/tasks/volumes.yml
@@ -1,7 +1,9 @@
- name: Configure volume domains
include_tasks: create_domain.yml
- run_once: true
- delegate_to: "{{ groups[domain.servers][0] }}"
+ args:
+ apply:
+ run_once: true
+ delegate_to: "{{ groups[domain.servers][0] }}"
with_items: "{{ glusterfs_domains }}"
loop_control:
loop_var: domain