06c6191799
This patch adds the openstack.kolla collection to the Galaxy requirements. It is installed from the OpenDev git repository. The collection is not yet used by Kayobe. Zuul cross-project dependencies on the ansible-collection-kolla repository are supported (and used in this commit). Story: 2009854 Task: 44503 Depends-On: https://review.opendev.org/c/openstack/ansible-collection-kolla/+/820165/ Change-Id: I91cbac839f816a00ac54bc4a350f44b5ae457cc3
21 lines
831 B
YAML
21 lines
831 B
YAML
---
|
|
- name: Slurp requirements.yml
|
|
command:
|
|
cmd: "git show {{ kayobe_galaxy_requirements_branch }}:{{ kayobe_galaxy_requirements_src_path }}"
|
|
chdir: "{{ kayobe_galaxy_requirements_src_dir }}"
|
|
register: requirements_yml
|
|
|
|
- name: Write requirements.yml
|
|
copy:
|
|
content: "{{ new_requirements | to_nice_yaml }}"
|
|
dest: "{{ kayobe_galaxy_requirements_dest_path }}"
|
|
vars:
|
|
old_requirements: "{{ requirements_yml.stdout | from_yaml }}"
|
|
new_requirement:
|
|
name: "file://{{ ansible_collection_kolla_src_dir }}"
|
|
type: git
|
|
version: "{{ kayobe_galaxy_requirements_branch }}"
|
|
new_requirements:
|
|
collections: "{{ (old_requirements.collections | rejectattr('name', 'search', 'ansible-collection-kolla') | list) + [new_requirement] }}"
|
|
roles: "{{ old_requirements.roles | default([]) }}"
|