Awesome
About
This shows how to provision a VM image using Ansible from a Packer template.
Usage (Ubuntu 22.04)
Install packer, qemu/kvm, docker, make, vagrant and the Windows 2022 vagrant box.
Provision the VM image and vagrant box:
make
Try using the VM image in a new VM:
vagrant box add -f packer-qemu-ansible-windows-example packer-qemu-ansible-windows-example.box
pushd example
vagrant up --no-destroy-on-error --no-tty --provider=libvirt
vagrant ssh
exit
vagrant destroy -f
popd
vagrant box remove -f packer-qemu-ansible-windows-example