vovimayhem / vagrant-guest_ansible

Running Ansible in Vagrant Guests
MIT License
67 stars 29 forks source link

Allow playbooks from directories #22

Open FireDrunk opened 6 years ago

FireDrunk commented 6 years ago

To keep my repo nice and clean, I'm placing my Ansible Playbooks in a subdirectory in my Vagrantfile location's directory. But when referring to these files in the Vagrantfile with:

  # Provisioning
  config.vm.provision :guest_ansible do |ansible|
    ansible.playbook = "provisioning/base.yml"
    ansible.sudo = true
  end

I get the error:

ansible provisioner:
* translation missing: en.vagrant.provisioners.ansible.playbook_path_invalid

Is it possible to add this as a feature?

colonelpopcorn commented 5 years ago

If you're using file sharing on the guest can you not just use ~/vagrant/provisioning/base.yml?