block-device/tasks/main.yaml
changeset 2 2556522a2a45
parent 0 df042396074e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/block-device/tasks/main.yaml	Sun Feb 09 12:05:37 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"