Just a repo to keep my stuff in for a Docker test system on a Windows/Hyper-V host.
- Ensure you have a local Windows admin account for Vagrant to use during vagrant up
- set VAGRANT_HOME env var to where you want to store boxes
- add vagrant to path, i.e. $Env:Path += ";C:\HashiCorp\Vagrant\bin"
- vagrant init
- vagrant up
This will bring up the VM, upgrade apt packages and run the Ansible docker.yml play.
- Add the IP of your virtual machine to the ./inventory.yml file
- Enable this under Windows Programs and Features
- Install Ubuntu from the Microsoft App store
- Open the ubuntu bash shell
apt update
apt install ansible sshpass -y
ansible-playbook -k -u vagrant -i ./inventory.yml ./docker.yml