zuul-airship-roles/examples/playbooks/libvirt/create-vm.yml

31 lines
742 B
YAML

- hosts: primary
roles:
- role: libvirt-domain
vars:
libvirt_domain:
state: running
name: 'vm1'
memory_mb: 512
vcpus: 1
volumes:
- name: 'volume-1'
device: 'disk'
format: 'qcow2'
pool: 'airship'
interfaces:
- network: 'provision-network'
- role: libvirt-domain
vars:
libvirt_domain:
state: running
name: 'vm2'
memory_mb: 512
vcpus: 1
volumes:
- name: 'volume-2'
device: 'disk'
format: 'qcow2'
pool: 'airship'
interfaces:
- network: 'provision-network'