diff options
| author | Luke Hoersten <[email protected]> | 2020-02-09 11:58:21 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-02-09 11:58:21 -0600 |
| commit | 785a8b2b45f0faf5e2578099bca1090c9c1417bb (patch) | |
| tree | 53b4737ab07baf112c4bbc5b968ba146ec64bf7a /roles/block-device/tasks | |
Opensourcing raspberry pi roles.
Diffstat (limited to 'roles/block-device/tasks')
| -rw-r--r-- | roles/block-device/tasks/main.yaml | 17 |
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" |
