Last active
August 11, 2016 08:07
-
-
Save coudenysj/e05c7c79e280c1523e060e63455db647 to your computer and use it in GitHub Desktop.
Running Ansible 2.0 in a Debian Vagrant box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
tasks: | |
- name: test connection | |
ping: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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