Robert Kaussow
ad7400c02b
All checks were successful
continuous-integration/drone/push Build is passing
24 lines
625 B
YAML
24 lines
625 B
YAML
---
|
|
- block:
|
|
- name: Ensure mountpoints are present
|
|
file:
|
|
path: "{{ item.path }}"
|
|
recurse: yes
|
|
state: directory
|
|
loop: "{{ pve_disk_mount }}"
|
|
loop_control:
|
|
label: "{{ item.path }}"
|
|
|
|
- name: Add diskmounts to fstab
|
|
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 }}"
|
|
become: True
|
|
become_user: root
|