Skip to content

Instantly share code, notes, and snippets.

@coudenysj
Last active August 11, 2016 08:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coudenysj/e05c7c79e280c1523e060e63455db647 to your computer and use it in GitHub Desktop.
Save coudenysj/e05c7c79e280c1523e060e63455db647 to your computer and use it in GitHub Desktop.
Running Ansible 2.0 in a Debian Vagrant box
---
- hosts: localhost
tasks:
- name: test connection
ping:
Vagrant.configure(2) do |config|
config.vm.provision "shell", inline: <<-SHELL
sudo echo "deb http://httpredir.debian.org/debian jessie-backports main contrib non-free" > /etc/apt/sources.list.d/jessie-backports.list
sudo apt-get update
sudo apt-get -t jessie-backports install ansible -y
ansible-playbook /vagrant/playbook.yml
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment