src.nth.io/

summaryrefslogtreecommitdiff
path: root/block-device/tasks/main.yaml
blob: 590fcc4560a0d569f442e34631026719dc9d1bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---

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