Vagrant provision with ansible

Put this code inside Vagrantfile before the last end

config.vm.provision "ansible" do |ansible|
  ansible.playbook = "playbook.yml"
  ansible.limit = "all"
  ansible.verbose = "vv"
  ansible.raw_arguments = [
  "--diff"
  ]
end

Leave a Reply