Skip to content

Instantly share code, notes, and snippets.

@jephir
Created September 4, 2014 19:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jephir/f76f918f28b7d0241ae0 to your computer and use it in GitHub Desktop.
Save jephir/f76f918f28b7d0241ae0 to your computer and use it in GitHub Desktop.
Vagrantfile for FreeBSD with 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|
config.vm.box = "chef/freebsd-10.0"
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
config.vm.provision "shell",
inline: "pkg install -y python"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
ansible.extra_vars = {
ansible_python_interpreter: "/usr/local/bin/python",
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment