I have a set of roles that I need to install with ansible-galaxy.
- src: 'https://gitlab.private/role-openstack-net.git'
scm: 'git'
version: '1.0.0'
name: 'role-openstack-net'
- src: 'https://gitlab.private/role-openstack-subnet.git'
scm: 'git'
version: '1.0.0'
name: 'role-openstack-subnet'
In real case, I have about 20 roles.
All the roles are private, so when I run:
ansible-galaxy install -f -c -r galaxy.yml
it asks me for the user / pass for each role, which is kind of bothering
Manually, I do:
git config --global credential.helper store
I enter my credentials once, and then it remembers it for all
But how should I do in a Jenkins Job ?
I saw here there is a way of putting a token:
https://github.com/ansible/ansible/pull/34621
but it doesn't seem to be work.
Any idea ?