mazer-rackham icon indicating copy to clipboard operation
mazer-rackham copied to clipboard

vagrant provision setup error

Open lhrkkk opened this issue 8 years ago • 5 comments

hi, I used the directive in the readme to launch the playbook with vagrant, but I encounted an error:

==> default: Running provisioner: ansible...
ERROR! Specified --limit does not match any hosts
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I already renamed the Vagrantfile and the ansible_hosts file, also uncommented the line in imgur-display-setup.yml to vagrant user. all with the instructions in the readme. The vm was initialized and up but provision step throwed the error. I don't know where is wrong, could you help me ?

lhrkkk avatar Oct 24 '15 12:10 lhrkkk

I solved the problem, adding this line in the Vagrantfile:

config.vm.provision :ansible do |ansible|
    ansible.playbook = "imgur-display-setup.yml"
    ansible.inventory_path = "ansible_hosts"
    ansible.limit = "all"  ### <<-- adding this line
 end

lhrkkk avatar Oct 25 '15 06:10 lhrkkk

@lhrkkk fix worked for me. Thx

sghiassy avatar Aug 14 '16 22:08 sghiassy

Thanks for the fix!

ctrlaltdylan avatar Sep 09 '16 19:09 ctrlaltdylan

Awesome

sureshamk avatar Jan 11 '17 13:01 sureshamk

thank you! 🙏

jrigassio avatar Jun 20 '17 15:06 jrigassio