jlund / mazer-rackham

Sample Ansible Playbook for Rack applications that installs Nginx, Passenger, Ruby 2.0.0 (or 1.9.3), Bundler, and git. It also demonstrates how to deploy a basic Rack application using Ansible.
MIT License
165 stars 25 forks source link

vagrant provision setup error #7

Open lhrkkk opened 9 years ago

lhrkkk commented 9 years ago

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 commented 9 years ago

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
sghiassy commented 8 years ago

@lhrkkk fix worked for me. Thx

ctrlaltdylan commented 8 years ago

Thanks for the fix!

sureshamk commented 7 years ago

Awesome

jrigassio commented 7 years ago

thank you! 🙏