Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rgl/packer-qemu-ansible-windows-example

provision a VM image using Ansible from a Packer template
https://github.com/rgl/packer-qemu-ansible-windows-example

ansible packer qemu vagrant windows

Last synced: 24 days ago
JSON representation

provision a VM image using Ansible from a Packer template

Awesome Lists containing this project

README

        

# About

This shows how to provision a VM image using [Ansible](https://www.ansible.com/) from a [Packer](https://www.packer.io/) template.

# Usage (Ubuntu 22.04)

Install packer, qemu/kvm, docker, make, vagrant and the [Windows 2022 vagrant box](https://github.com/rgl/windows-vagrant).

Provision the VM image and vagrant box:

```bash
make
```

Try using the VM image in a new VM:

```bash
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
```