Skip to content

Instantly share code, notes, and snippets.

@mid0111
Created June 8, 2014 03:25
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 mid0111/e748c930b115baa65fe2 to your computer and use it in GitHub Desktop.
Save mid0111/e748c930b115baa65fe2 to your computer and use it in GitHub Desktop.
Vagrantfile for provisioning by Ansible
# -*- 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|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "centos65-hubot"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.network "public_network", ip: "192.168.0.21"
config.vm.provision "ansible" do |ansible|
ansible.limit = 'all'
ansible.inventory_path = "hosts"
ansible.playbook = "provisioning/playbook.yml"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment