title: Using credentials for ansible-galaxy with private gitlab repo in a Jenkins Job
body: <p>I have a set of roles that I need to install with ansible-galaxy.</p>
  
  <pre><code>- 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'
  </code></pre>
  
  <p>In real case, I have about 20 roles.</p>
  
  <p>All the roles are private, so when I run: </p>
  
  <pre><code>ansible-galaxy install -f -c -r galaxy.yml
  </code></pre>
  
  <p>it asks me for the user / pass for each role, which is kind of bothering</p>
  
  <p>Manually, I do:</p>
  
  <pre><code>git config --global credential.helper store
  </code></pre>
  
  <p>I enter my credentials once, and then it remembers it for all </p>
  
  <p>But how should I do in a Jenkins Job ?</p>
  
  <p>I saw here there is a way of putting a token: </p>
  
  <p><a href="https://github.com/ansible/ansible/pull/34621" rel="noreferrer">https://github.com/ansible/ansible/pull/34621</a></p>
  
  <p>but it doesn't seem to be work. </p>
  
  <p>Any idea ?</p>