vagrant up for elk does not work (nginx)
mkevac opened this issue · 1 comments
mkevac commented
marko@marko-ubuntu:~/tmp/ansible-vagrant-examples/elk (master) $ vagrant up
Bringing machine 'logs' up with 'virtualbox' provider...
Bringing machine 'webs' up with 'virtualbox' provider...
==> logs: Checking if box 'geerlingguy/ubuntu1604' is up to date...
==> logs: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> logs: flag to force provisioning. Provisioners marked to run always will still run.
==> webs: Importing base box 'geerlingguy/ubuntu1604'...
==> webs: Matching MAC address for NAT networking...
==> webs: Checking if box 'geerlingguy/ubuntu1604' is up to date...
==> webs: Setting the name of the VM: elk_webs_1504865939709_93920
==> webs: Fixed port collision for 22 => 2222. Now on port 2200.
==> webs: Clearing any previously set network interfaces...
==> webs: Preparing network interfaces based on configuration...
webs: Adapter 1: nat
webs: Adapter 2: hostonly
==> webs: Forwarding ports...
webs: 22 (guest) => 2200 (host) (adapter 1)
==> webs: Running 'pre-boot' VM customizations...
==> webs: Booting VM...
==> webs: Waiting for machine to boot. This may take a few minutes...
webs: SSH address: 127.0.0.1:2200
webs: SSH username: vagrant
webs: SSH auth method: private key
==> webs: Machine booted and ready!
==> webs: Checking for guest additions in VM...
==> webs: Setting hostname...
==> webs: Configuring and enabling network interfaces...
==> webs: Mounting shared folders...
webs: /vagrant => /home/marko/tmp/ansible-vagrant-examples/elk
==> webs: Running provisioner: ansible...
webs: Running ansible-playbook...
ERROR! the role 'geerlingguy.nginx' was not found in /home/marko/tmp/ansible-vagrant-examples/elk/provisioning/web/roles:/home/marko/tmp/ansible-vagrant-examples/elk/roles:/home/marko/tmp/ansible-vagrant-examples/elk/provisioning/web
The error appears to have been in '/home/marko/tmp/ansible-vagrant-examples/elk/provisioning/web/playbook.yml': line 17, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- geerlingguy.nginx
^ here
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
geerlingguy commented
You need to run step 5 of the getting started guide to install Ansible Galaxy dependencies: https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/elk#getting-started