summaryrefslogtreecommitdiffstats
path: root/roles/ands_storage/tasks/detect_device.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_storage/tasks/detect_device.yml')
-rw-r--r--roles/ands_storage/tasks/detect_device.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/ands_storage/tasks/detect_device.yml b/roles/ands_storage/tasks/detect_device.yml
index 3467371..f0245f3 100644
--- a/roles/ands_storage/tasks/detect_device.yml
+++ b/roles/ands_storage/tasks/detect_device.yml
@@ -4,9 +4,12 @@
# when: item.mount == ands_data_path
- name: find large block devices
+# no_log: true
set_fact: ands_data_device="/dev/{{ item.key }}"
# debug: msg="{{ item.key }} - {{ (item.value.sectors | int) * (item.value.sectorsize | int) / 1024 / 1024 / 1024 }} GB"
with_dict: "{{ ansible_devices }}"
+ loop_control:
+ label: "{{ item.key }} of {{ (item.value.sectors | int) * (item.value.sectorsize | int) / 1024 / 1024 / 1024 }} GB"
when:
- not ands_data_device is defined
- not item.value.partitions