Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow playbooks from directories #22

Open
FireDrunk opened this issue Jul 3, 2018 · 1 comment
Open

Allow playbooks from directories #22

FireDrunk opened this issue Jul 3, 2018 · 1 comment

Comments

@FireDrunk
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants