21 lines
539 B
YAML
21 lines
539 B
YAML
---
|
|
- name: Ensure mountpoints are present
|
|
ansible.builtin.file:
|
|
path: "{{ item.path }}"
|
|
recurse: yes
|
|
state: directory
|
|
loop: "{{ pve_disk_mount }}"
|
|
loop_control:
|
|
label: "{{ item.path }}"
|
|
|
|
- name: Add diskmounts to fstab
|
|
ansible.posix.mount:
|
|
path: "{{ item.path }}"
|
|
src: "{{ item.src }}"
|
|
fstype: "{{ item.fstype }}"
|
|
opts: "{{ item.opts | default(omit) }}"
|
|
state: "{{ item.state | default('mounted') }}"
|
|
loop: "{{ pve_disk_mount }}"
|
|
loop_control:
|
|
label: "{{ item.src }} {{ item.path }}"
|