Hi all,
I am trying to automatically pull roles within a role meta/main.yml dependencies.
I have seen something deleted on documentation about this format :
`
dependencies:
- { role: ‘git+http://git.example.com/repos/role-foo,v1.1,foo’ }
`
I am using Ansible 2.1.0.0, and I have the same behaviour than Brian in this ML.
Do we must use ansible-galaxy install command with requirements.yml file before executing the playbook ?
Thanks in advance
Hi Karibou,
I think what you’re looking for is the Vault. You can store the url in your vault with the username and password included. That file would look like this:
role-foo-url: 'git+[http://username:password@git.example.com/repos/role-foo,v1.1,foo](http://git.example.com/repos/role-foo,v1.1,foo)'
And you would adjust the play in your email as follows:
`
dependencies:
`
Alternatively you could put just the username and password in the vault and do the replacement on execution of the play itself.
Thanks,
Alex
Hi Alex,
Thanks for your response, but I think you misunderstood what I am trying to achieve.
I want to pull automatically with dependencies, the corresponding roles.
I tried differents solutions, and the one with usage of requirements.yml before playbook launch seems best.