Make sure all disks are mounted on vmhosts

This commit is contained in:
Timo Makinen 2022-10-27 17:23:37 +00:00
parent 1cf67e6b24
commit b46804a55d

View file

@ -7,6 +7,35 @@
vars_files:
- "{{ ansible_private }}/vars.yml"
pre_tasks:
- name: mount /export
ansible.builtin.mount:
name: /export/hdd
src: LABEL=hdd
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
- name: mount /export
ansible.builtin.mount:
name: /export/nvme
src: LABEL=nvme
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
- name: mount /export
ansible.builtin.mount:
name: /export/ssd
src: LABEL=ssd
fstype: xfs
opts: noatime,noexec,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
roles:
- base
- kvm_host