block-device/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 23 Mar 2026 23:38:04 -0500
changeset 251 f9f96b8c092e
parent 244 7c15448980b1
permissions -rw-r--r--
Changed reg for koreader to false.

---

- 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}}"
    dump:   "0"
    passno: "2"
    state:  "mounted"