summaryrefslogtreecommitdiffstats
path: root/roles/ands_storage/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_storage/tasks/main.yml')
-rw-r--r--roles/ands_storage/tasks/main.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/ands_storage/tasks/main.yml b/roles/ands_storage/tasks/main.yml
index a86babe..9318f88 100644
--- a/roles/ands_storage/tasks/main.yml
+++ b/roles/ands_storage/tasks/main.yml
@@ -5,7 +5,7 @@
ands_data_path: "{{ ands_data_path }}"
- name: Analyze storage devices
- include: detect_device.yml
+ include_tasks: detect_device.yml
when: not ands_data_device is defined
- name: Create Ands VG
@@ -30,6 +30,8 @@
- name: Add Heketi to Storage Domains
set_fact: ands_storage_domains="{{ ands_storage_domains | union([ands_heketi_domain]) }}"
when:
+ - ands_configure_heketi
+ - ands_heketi_domain is defined
- (ansible_lvm.lvs[ands_heketi_lv] is defined) or (ands_heketi_volume_size is defined)
- heketi_stat_result.stat.exists == False