41 lines
929 B
YAML
41 lines
929 B
YAML
---
|
|
- name: configure instance
|
|
hosts: vmhost
|
|
user: root
|
|
gather_facts: true
|
|
|
|
vars_files:
|
|
- "{{ ansible_private }}/vars.yml"
|
|
|
|
pre_tasks:
|
|
- name: mount /export/libvirt/hdd
|
|
ansible.builtin.mount:
|
|
name: /export/libvirt/hdd
|
|
src: LABEL=hdd
|
|
fstype: xfs
|
|
opts: noatime,noexec,nosuid,nodev
|
|
passno: "0"
|
|
dump: "0"
|
|
state: mounted
|
|
- name: mount /export/libvirt/nvme
|
|
ansible.builtin.mount:
|
|
name: /export/libvirt/nvme
|
|
src: LABEL=nvme
|
|
fstype: xfs
|
|
opts: noatime,noexec,nosuid,nodev
|
|
passno: "0"
|
|
dump: "0"
|
|
state: mounted
|
|
- name: mount /export/libvirt/ssd
|
|
ansible.builtin.mount:
|
|
name: /export/libvirt/ssd
|
|
src: LABEL=ssd
|
|
fstype: xfs
|
|
opts: noatime,noexec,nosuid,nodev
|
|
passno: "0"
|
|
dump: "0"
|
|
state: mounted
|
|
|
|
roles:
|
|
- base
|
|
- kvm_host
|