Skip to content

Instantly share code, notes, and snippets.

@TomCan
Created June 27, 2014 11:22
Show Gist options
  • Select an option

  • Save TomCan/ea3e35c01ab0c80c936a to your computer and use it in GitHub Desktop.

Select an option

Save TomCan/ea3e35c01ab0c80c936a to your computer and use it in GitHub Desktop.
# Vagrantfile - update to use the shell provision module to run a bootstrap script
config.vm.provision :shell, :path => "bootstrap.sh"
# bootstrap.sh
#!/usr/bin/env bash
#
# Bootstrap the vagrant VM by installing Ansible and
# letting ansible do the provisioning in local connection mode
#
sudo ansible-playbook /vagrant/playbook.yml -i /path/to/hosts --connection=local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment