From a6e2e511a47e121ce9c1c95d18ee4a3d57e3c859 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 7 Jun 2018 13:20:08 +0100 Subject: [PATCH] get-ansible-role-requiremnets: Use refspec to try Gerrit changes Without this patch, deployers have to mimic zuul structure to locally test Gerrit patches in-depth, with their specific references, before they are merged into the main tree. This is a problem for people wanting to not change the location of the openstack-ansible folder. This patches solves the problem by using the refspec parameter of the ansible git module: A user can then edit its own ansible-role-requirements for testing patches. Change-Id: I6c0fa078da3f32b542d3a3492a0fb79c822a5f8d --- get-ansible-role-requirements.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/get-ansible-role-requirements.yml b/get-ansible-role-requirements.yml index 5217c774..37a4779b 100644 --- a/get-ansible-role-requirements.yml +++ b/get-ansible-role-requirements.yml @@ -123,6 +123,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