Skip to content

Instantly share code, notes, and snippets.

@immutef
Created November 3, 2014 16:17
Show Gist options
  • Save immutef/4b0063b41421ced87fb1 to your computer and use it in GitHub Desktop.
Save immutef/4b0063b41421ced87fb1 to your computer and use it in GitHub Desktop.
Vagrant Ansible Windows
# ...
if Vagrant::Util::Platform.windows?
config.vm.provision :shell, path: "windows.sh"
else
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbook.yml"
end
end
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:rquillo/ansible
sudo apt-get update
sudo apt-get install -y ansible
sudo ansible-playbook /vagrant/ansible/playbook.yml --connection=local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment