Dependencies with another names are installed and break provisioning

Hi list,

I noticed that Ansible installs some roles with another name and I opened https://github.com/ansible/ansible/issues/8908 - which is marked as fixed now, but it still does not work for me:

if I install my role:

$ ansible-galaxy install guillaumededrie.couchdb --roles-path=./provisioning/roles

it installs ANXS.erlang and ANXS.build-essential as dependencies.

However when I want to provision my VM, I get this error:

vagrant provision
==> default: Running provisioner: ansible…
ERROR: cannot find role in /Users/robert/project/provisioning/roles/Ansibles.erlang or /Users/robert/project/provisioning/Ansibles.erlang or /usr/local/etc/ansible/roles/Ansibles.erlang
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I get this error because the playbook references “Ansibles.erlang” as dependency, but ansible-galaxy installs roles with another name/folder-name and then it breaks.

Is this the desired behavior for Ansible?

Best,
Robert

Hi Robert, that account recently switched names, and as a result we’re still cleaning up some dependency issues. For now, you can get around this by modifying each meta/main.yml in the roles, to replace “Ansibles” with “ANXS” instead. We’ll also ping the author to let him know about the issue.

Thanks!