Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 660 Bytes

File metadata and controls

26 lines (19 loc) · 660 Bytes

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 Debian 12 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-debian-example packer-qemu-ansible-debian-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-debian-example