|
|
|
@ -12,6 +12,10 @@
|
|
|
|
|
with_together:
|
|
|
|
|
- "{{ zuul._projects.values() | list }}"
|
|
|
|
|
- "{{ cached_repos.results }}"
|
|
|
|
|
# ANSIBLE0006: If we use the git module, we get warning
|
|
|
|
|
# ANSIBLE0004 since we do not give an explicit version
|
|
|
|
|
tags:
|
|
|
|
|
- skip_ansible_lint
|
|
|
|
|
|
|
|
|
|
- name: Clone upstream repo to workspace
|
|
|
|
|
command: "git clone https://{{ item.0.canonical_hostname }}/{{ item.0.name}} {{ ansible_user_dir }}/{{ item.0.src_dir}}"
|
|
|
|
@ -21,9 +25,16 @@
|
|
|
|
|
with_together:
|
|
|
|
|
- "{{ zuul._projects.values() | list }}"
|
|
|
|
|
- "{{ cached_repos.results }}"
|
|
|
|
|
# ANSIBLE0006: If we use the git module, we get warning
|
|
|
|
|
# ANSIBLE0004 since we do not give an explicit version
|
|
|
|
|
tags:
|
|
|
|
|
- skip_ansible_lint
|
|
|
|
|
|
|
|
|
|
- name: Remove origin from local git repos
|
|
|
|
|
command: "git remote rm origin"
|
|
|
|
|
args:
|
|
|
|
|
chdir: "{{ ansible_user_dir }}/{{ item.src_dir}}"
|
|
|
|
|
with_items: "{{ zuul._projects.values() | list }}"
|
|
|
|
|
# ANSIBLE0006: git remote is not supported by ansible module
|
|
|
|
|
tags:
|
|
|
|
|
- skip_ansible_lint
|
|
|
|
|