xoxys.pve/tasks/pve.yml
Robert Kaussow ad7400c02b
All checks were successful
continuous-integration/drone/push Build is passing
remove old loop syntax
2019-08-28 10:36:26 +02:00

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