This might be a dummy question but I'm stuck with role dependency definition in ansible.
dependencies:
- { role: 'git+https://github.com/myuser/my-role-test.git,master,test-dep' }
Then I run my playbook, and I get the following error:
ERROR: cannot find role in /var/lib/awx/projects/_1__myproject/roles/git+https:/github.com/myuser/test.git,master,test-dep or /var/lib/awx/projects/_1__myproject/git+https:/github.com/myuser/test.git,master,test-dep or /etc/ansible/roles/git+https:/github.com/myuser/test.git,master,test-dep
(Here you can guess I'm using tower. But for the purpose of this issue, I'm trying to run the playbook directly with ansible-playbook command.)
When I see this error message, I guess that the git url is just parsed like a directory structure. I've tried several url format like git@, git+ssh://, ssh://... No success.
So I had a look at ansible source code to figure out how the role value was parsed (play.py). I'm not a python expert however I can just see a _get_role_path method dealing exclusively with filesystem path stuff.
Is this "role dependency from git repo" feature real?
On the other side I can see this recent
thread with famous people here talking about this feature...
I'm probably missing something. Can someone help?
Thank you!