roles/block-device/tasks/main.yaml
changeset 0 df042396074e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/block-device/tasks/main.yaml	Sun Feb 09 11:58:21 2020 -0600
@@ -0,0 +1,17 @@
+---
+
+- name: create mount point
+  become: yes
+  file:
+    path:  "{{block_device_mount_point}}"
+    mode:  "{{block_device_mode}}"
+    state: "directory"
+
+- name: mount block device
+  become: yes
+  mount:
+    path:   "{{block_device_mount_point}}"
+    src:    "{{block_device_uuid}}"
+    fstype: "{{block_device_fstype}}"
+    opts:   "{{block_device_opts}}"
+    state:  "mounted"