Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rgl/packer-qemu-ansible-windows-example
- Owner: rgl
- Created: 2021-12-11T18:32:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-10T11:21:12.000Z (over 1 year ago)
- Last Synced: 2024-10-11T07:16:48.750Z (about 1 month ago)
- Topics: ansible, packer, qemu, vagrant, windows
- Language: HCL
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```