src.nth.io/

summaryrefslogtreecommitdiff
path: root/block-device/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-02-09 12:05:37 -0600
committerLuke Hoersten <[email protected]>2020-02-09 12:05:37 -0600
commit1cb30cc0aa4fda9bf0bac0b41ace862b1db434b8 (patch)
treee4b27462ba4b8b249bb5eaac4b4be0006ca0392c /block-device/tasks
parent195a4a3fcf65bf47ecb1a0ea2a9fb070c18eb20f (diff)
Moved roles to top level
Diffstat (limited to 'block-device/tasks')
-rw-r--r--block-device/tasks/main.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/block-device/tasks/main.yaml b/block-device/tasks/main.yaml
new file mode 100644
index 0000000..8d0b894
--- /dev/null
+++ b/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"