get-ansible-role-requirements: Use refspec when outside of OpenStack CI

This is a fixup for a6e2e511a47e("Use refspec to try Gerrit changes").
We also need to take the refspec parameter into consideration when
cloning repositories outside of OpenStack CI. This will facilitate
manual testing.

Change-Id: Ie96eb6dcd14cfec8c2b3813fbd67eef441178cdb
This commit is contained in:
Markos Chandras 2018-06-15 10:44:44 +01:00
parent 9db790cf52
commit 2dac764ac9
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@
repo: "{{ item['src'] }}"
dest: "{{ lookup('env', 'ANSIBLE_ROLE_DEP_DIR') }}/{{ item['name'] | default(item['src'] | basename) }}"
version: "{{ item['version'] | default('master') }}"
refspec: "{{ item['refspec'] | default(omit) }}"
depth: "{{ item['depth'] | default('10') }}"
update: true
force: true