Skip to content

Instantly share code, notes, and snippets.

@ktaragorn
Created October 30, 2015 03:58
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 ktaragorn/eb96dd049370b004cadc to your computer and use it in GitHub Desktop.
Save ktaragorn/eb96dd049370b004cadc to your computer and use it in GitHub Desktop.
Vagrant provisioning configure with shell and ansible
# this is apt-mirrors.sh to make all apt sources pick the closest mirrors.
# this works very well and inline does not, perhaps more escaping needed
config.vm.provision "shell", path: "https://gist.githubusercontent.com/ktaragorn/81496cb4f8ff4bfddb00/raw/50b2d5530ef39aab958d067c00404de6f212c254/apt-mirrors.sh"
config.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/setup.yml"
ansible.groups = { "vagrant" => "all"}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment