You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
560 B
9 lines
560 B
- name: Fetch the CentOS Stream 8 ISO image
|
|
get_url:
|
|
url: '{{ centos_download_url }}'
|
|
dest: /var/lib/libvirt/images/{{ centos_download_url | basename }}
|
|
|
|
- name: Start the installation
|
|
command:
|
|
cmd: virt-install --name foo --autostart --noautoconsole --cpu host-passthrough --vcpus 2 --ram 2048 --os-variant centos-stream8 --disk path=/var/lib/libvirt/images/foo.qcow2,size=50 --console pty,target.type=virtio --serial pty --location "/var/lib/libvirt/images/{{ centos_download_url | basename }}"
|
|
creates: /var/lib/libvirt/images/foo.qcow2
|
|
|