summaryrefslogtreecommitdiffstats
path: root/roles/ands_storage/tasks/hostmount.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_storage/tasks/hostmount.yml')
-rw-r--r--roles/ands_storage/tasks/hostmount.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/ands_storage/tasks/hostmount.yml b/roles/ands_storage/tasks/hostmount.yml
new file mode 100644
index 0000000..e4f301f
--- /dev/null
+++ b/roles/ands_storage/tasks/hostmount.yml
@@ -0,0 +1,5 @@
+- file: path="{{ item.value.path }}" state=directory
+ with_dict: "{{ domain.volumes }}"
+
+- mount: src="{{ item.value.path }}" name="{{ item.value.mount }}" opts=bind fstype=none state=mounted
+ with_dict: "{{ domain.volumes }}"