summaryrefslogtreecommitdiffstats
path: root/roles/ands_facts/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_facts/tasks')
-rw-r--r--roles/ands_facts/tasks/nodes.yml6
-rw-r--r--roles/ands_facts/tasks/volumes.yml6
2 files changed, 8 insertions, 4 deletions
diff --git a/roles/ands_facts/tasks/nodes.yml b/roles/ands_facts/tasks/nodes.yml
index d9f61df..822b380 100644
--- a/roles/ands_facts/tasks/nodes.yml
+++ b/roles/ands_facts/tasks/nodes.yml
@@ -1,7 +1,9 @@
- name: Process all nodes
include_tasks: "node.yml"
- run_once: true
- delegate_to: "{{ groups['masters'][0] }}"
+ args:
+ apply:
+ run_once: true
+ delegate_to: "{{ groups['masters'][0] }}"
with_dict: "{{ hostvars }}"
when: host.key in groups['ands']
vars:
diff --git a/roles/ands_facts/tasks/volumes.yml b/roles/ands_facts/tasks/volumes.yml
index 616202c..7bbba49 100644
--- a/roles/ands_facts/tasks/volumes.yml
+++ b/roles/ands_facts/tasks/volumes.yml
@@ -1,7 +1,9 @@
- name: Process all storage domains
include_tasks: "volumes_iterate.yml"
- run_once: true
- delegate_to: "{{ groups[domain.servers][0] }}"
+ args:
+ apply:
+ run_once: true
+ delegate_to: "{{ groups[domain.servers][0] }}"
with_items: "{{ ands_local_storage_domains | default([]) | union(ands_storage_domains) }}"
loop_control:
loop_var: domain