Created
May 28, 2021 11:28
-
-
Save kkroesch/4bc8e8156c06572da7c68b956a934dcf to your computer and use it in GitHub Desktop.
Vagrantfile to have an Ansible and Docker toolkit at hand on Windows machines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile to have an Ansible and Docker toolkit at hand on Windows machines. | |
Vagrant.configure("2") do |config| | |
# Jeff Geerling must have Ansible on his box ;-) | |
config.vm.box = "geerlingguy/debian10" | |
# If this does not work, remove the bridge part and Vagrant will interactively ask. | |
# Afterwards, the selection identifier can be replaced in the end: | |
config.vm.network "public_network", bridge: "Intel(R) Wi-Fi 6 AX201 160MHz" | |
# Possible customizations: | |
# config.vm.provider "virtualbox" do |vb| | |
# # Display the VirtualBox GUI when booting the machine | |
# vb.gui = true | |
# | |
# # Customize the amount of memory on the VM: | |
# vb.memory = "1024" | |
# end | |
# Install some development tools and eventually Docker. Get rid of the Nano editor. | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update | |
apt-get install -y apt-transport-https ca-certificate cur gnup lsb-release git neovim | |
apt-get remove -y nano | |
curl -s https://get.docker.com/ | sh | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment