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

Loading…
Cancel
Save