Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rgodishela/c51078bfe508b27cdfe5c87af927901d to your computer and use it in GitHub Desktop.
Save rgodishela/c51078bfe508b27cdfe5c87af927901d to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "fedora/23-cloud-base"
config.vm.box_check_update = true
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
sudo dnf update -y
sudo dnf install python -y
sudo dnf install ansible -y
SHELL
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "playbook.yml"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment