hashbangcode / vlad

Vlad - Vagrant LAMP Ansible Drupal
173 stars 53 forks source link

Custom playbook not working #271

Closed johncook closed 9 years ago

johncook commented 9 years ago

I had a problem with custom playbooks producing the followning error:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

ansible provisioner:
* `inventory_path` for the Ansible provisioner does not exist on the host system: /Users/johncook/sites/project/vlad/host.ini

It turns out to be an error in Vagrantfile at line 416. Patch text follows:

diff --git a/Vagrantfile b/Vagrantfile
index 8ca34e0..8f77b1c 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -413,7 +413,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
           ansible.extra_vars = {ansible_ssh_user: 'vagrant'}
           ansible.host_key_checking = false
           ansible.raw_ssh_args = '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no -o IdentitiesOnly=yes'
-          ansible.inventory_path = 'vlad/host.ini'
+          ansible.inventory_path = 'vlad_guts/host.ini'
           ansible.limit = 'all'
           if vconfig['ansible_verbosity'] != ''
             ansible.verbose = vconfig['ansible_verbosity']
dixhuit commented 9 years ago

This has already been fixed in the dev branch: https://github.com/hashbangcode/vlad/issues/269

@philipnorton42 How do you want to handle this in the master branch? Hotfix master? New release based on current dev?

philipnorton42 commented 9 years ago

Yeah, I think it's about time I did a new release. I'll sort it out tonight. Thanks for the bug report though @johncook, keeps us on our toes! :)