From 78f40f2cff32e1753e9e49bb7dcc73843d0ce1fb Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Thu, 9 Feb 2017 21:27:21 -0800 Subject: [PATCH] local provisioning --- ch11/playbooks/local/Vagrantfile | 13 +++++++++++++ ch11/playbooks/local/playbook.yml | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 ch11/playbooks/local/Vagrantfile create mode 100644 ch11/playbooks/local/playbook.yml diff --git a/ch11/playbooks/local/Vagrantfile b/ch11/playbooks/local/Vagrantfile new file mode 100644 index 0000000..c243738 --- /dev/null +++ b/ch11/playbooks/local/Vagrantfile @@ -0,0 +1,13 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# All Vagrant configuration is done below. The "2" in Vagrant.configure +# configures the configuration version (we support older styles for +# backwards compatibility). Please don't change it unless you know what +# you're doing. +Vagrant.configure("2") do |config| + config.vm.box = "ubuntu/trusty64" + config.vm.provision "ansible_local" do |ansible| + ansible.playbook = "playbook.yml" + end +end diff --git a/ch11/playbooks/local/playbook.yml b/ch11/playbooks/local/playbook.yml new file mode 100644 index 0000000..e944a3d --- /dev/null +++ b/ch11/playbooks/local/playbook.yml @@ -0,0 +1,6 @@ +- name: trivial playbook to test vagrant + hosts: all + gather_facts: False + tasks: + - name: ping + ping: -- 2.44.0