v0.0.20
This commit is contained in:
40
qemu.yaml
40
qemu.yaml
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user