From: Lorin Hochstein Date: Fri, 10 Feb 2017 05:27:21 +0000 (-0800) Subject: local provisioning X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=78f40f2cff32e1753e9e49bb7dcc73843d0ce1fb;p=ansiblebook.git local provisioning --- 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: