mhamrah / ansible-mesos-playbook

An ansible playbook for launching a mesos cluster with docker and marathon support.
MIT License
151 stars 60 forks source link

ansible-playbook search path for roles doesn't include librarian_roles #2

Closed 24601 closed 10 years ago

24601 commented 10 years ago

sym linking it fixed the issue, but using the instructions out of the readme result in the following error.

Workaround that seems to work: ln -s ./librarian_roles roles

Maybe a better solution is directing librarian to put stuff in roles (I don't know, I'm an ansible newbie)

ERROR: cannot find role in /home/vagrant/ansible-mesos-playbook/roles/ansible-docker or /home/vagrant/ansible-mesos-playbook/ansible-docker or /etc/ansible/roles/ansible-docker

mhamrah commented 10 years ago

You can add this to your ansible.cfg file in the project directory:

roles_path=./librarian_roles

I'll update readme.

24601 commented 10 years ago

Thanks! Since I am a noob on ansible & associated libraries, this helps and is a better fix than the symlink! Thanks! Great work on this project, really like it & appreciate it!