block-device/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 10 Feb 2024 15:40:23 -0600
changeset 228 ff776d663062
parent 2 2556522a2a45
permissions -rw-r--r--
Added pastebin bin role.

---

- 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"