brusq-RH 3 months ago
parent
commit
33c16b2bd1
  1. 14
      aap/playbooks/create-vm.yaml

14
aap/playbooks/create-vm.yaml

@ -4,7 +4,7 @@
## $ dnf install -y ansible python3-jmespath python3-netaddr
##
- name: Create a VM with cloud-init and using an OCI artefact as disk source
hosts: "{( hypervisor )}"
hosts: "{{ hypervisor }}"
gather_facts: false
##
## Pre-requisites on the managed node
@ -25,15 +25,15 @@
##
libvirt_domain_parameters:
name: "{( vm_name )}"
ipv4_address: "{( vm_ip )}"/24
name: "{{ vm_name }}"
ipv4_address: "{{ vm_ip }}"/24
ipv4_gateway: 192.168.122.1
ipv4_nameserver: 192.168.122.1
network: default
rhel_version: "{( rhel_version )}"
ram: "{( vm_ram )}"
vcpu: "{( vm_vcpu )}"
disk: "{( vm_disk )}"
rhel_version: "{{ rhel_version }}"
ram: "{{ vm_ram }}"
vcpu: "{{ vm_vcpu }}"
disk: "{{ vm_disk }}"
architecture: x86_64
##

Loading…
Cancel
Save