Skip to content

Instantly share code, notes, and snippets.

@tsubakimoto
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubakimoto/484c10ec1b2d517c7e05 to your computer and use it in GitHub Desktop.
Save tsubakimoto/484c10ec1b2d517c7e05 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "chef/centos-6.5"
config.vm.hostname = "ansible-host"
config.vm.network :private_network, ip: "192.168.56.10"
config.vm.provision "shell", inline: <<-EOT
yum update -y
wget https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
yum install -y ansible
EOT
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment