July 2017
Intermediate to advanced
266 pages
6h 36m
English
Ansible's playbook implementation can be used to provision Vagrant machines through the Ansible provider. Providers in Vagrant allow the Vagrant user to specify a configuration management solution that will be leveraged to automate the standup of a given virtual machine. This information is contained in a Ruby Vagrantfile. An example of a simple Vagrantfile is provided here:
# This is an example Vagrantfile which can be used with # Vagrant 1.7 and greater to provision an Ubuntu Box # using AnsibleVagrant.require_version ">= 1.7.0"Vagrant.configure(2) do |config|config.vm.box = "ubuntu/trusty64" config.vm.provision "ansible" do |ansible| ansible.verbose = "v" ansible.playbook = "playbook.yml" end ...
Read now
Unlock full access