src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/block-device/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-02-09 11:58:21 -0600
committerLuke Hoersten <[email protected]>2020-02-09 11:58:21 -0600
commit785a8b2b45f0faf5e2578099bca1090c9c1417bb (patch)
tree53b4737ab07baf112c4bbc5b968ba146ec64bf7a /roles/block-device/tasks
Opensourcing raspberry pi roles.
Diffstat (limited to 'roles/block-device/tasks')
-rw-r--r--roles/block-device/tasks/main.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/block-device/tasks/main.yaml b/roles/block-device/tasks/main.yaml
new file mode 100644
index 0000000..8d0b894
--- /dev/null
+++ b/roles/block-device/tasks/main.yaml
@@ -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"