windmill/tests/base-minimal.yaml

28 lines
921 B
YAML

- hosts: bastion
roles:
- configure-unbound
- use-cached-repos
# - mirror-workspace-git-repos
- mirror-info
- role: configure-mirrors
set_apt_mirrors_trusted: True
tasks:
- name: Synchronize src repos to workspace directory.
synchronize:
dest: .
src: "{{ zuul.executor.src_root }}"
no_log: true
# NOTE(pabelanger): Because use-cache-repos force the delete of origin, the
# git module from ansible will not setup origin correctly. This is like a
# bug in ansible, and should be discussed upstream.
- name: Add origin to local git repos
command: "git remote add origin https://{{ item.canonical_name }}"
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