51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
---
|
|
- name: configure instance
|
|
hosts: vmhost
|
|
user: root
|
|
gather_facts: true
|
|
|
|
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
|
|
|
|
tasks:
|
|
- name: fetch rocky linux install image
|
|
get_url:
|
|
dest: /var/lib/libvirt/images/Rocky-8.5-x86_64-minimal.iso
|
|
url: https://nic.funet.fi/pub/mirrors/rockylinux.org/8.5/Minimal/x86_64/iso/Rocky-8.5-x86_64-minimal.iso
|
|
checksum: sha256:4eb2ae6b06876205f2209e4504110fe4115b37540c21ecfbbc0ebc11084cb779
|
|
mode: 0644
|
|
owner: root
|
|
group: "{{ ansible_wheel }}"
|