This commit is contained in:
2024-10-25 10:25:04 -04:00
parent 2f3f4a8d2c
commit 160ffca2ee
55 changed files with 1201 additions and 349 deletions

View File

@@ -1,28 +1,20 @@
---
# Playbook for QEMU
- name: Prepare virtualization environment
hosts: alpha-worker-0
- name: Test QEMU
hosts: localhost
become: true
vars:
qemu_network_networks:
- name: lan
bridge: br1
interfaces:
- eno2np1
use_dhcp: false
address: 10.0.0.2
netmask: 255.255.255.0
gateway: 10.0.0.254
qemu_network_machines:
- name: nfs
ram_mb: 4096
tasks:
- name: Deploy test vm
community.libvirt.virt:
name: test
state: running
persistent: true
memory: 4096
vcpus: 1
networks:
- lan
os_type: linux
disks:
- filename: nfs-vda
type: qcow2
target_dev: vda
- filename: nfs-vdb
type: qcow2
target_dev: vda
- name: test
size: 8
format: qcow2
cdrom:
- url: https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.7.0-amd64-netinst.iso