Skip to content

Commit

Permalink
Allow refspec in role fetcher
Browse files Browse the repository at this point in the history
This allows specification in the ansible-role-requirements to pull
a role directly from a gerrit change.

Example:
- name: os_neutron
  scm: git
  src: https://git.openstack.org/openstack/openstack-ansible-os_neutron
  version: FETCH_HEAD
  refspec: '+refs/changes/24/391524/*:refs/remotes/origin/changes/24/391524/*'

This will pull the latest revision of change 391524.

Change-Id: I96666f349d6f0317d51735146e94c3bd12c7ef6f
  • Loading branch information
logan2211 committed Dec 5, 2016
1 parent ab44138 commit 3037067
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/get-ansible-role-requirements.yml
Expand Up @@ -33,6 +33,7 @@
repo: "{{ item.src }}"
dest: "{{ item.path | default(role_path_default) }}/{{ item.name | default(item.src | basename) }}"
version: "{{ item.version | default('master') }}"
refspec: "{{ item.refspec | default(omit) }}"
update: true
force: true
when:
Expand Down

0 comments on commit 3037067

Please sign in to comment.