install-ansible: fix collections install for devel job

This wasn't quite fixed right when these were moved into
project-config.  Get the projects and install them.

Change-Id: I0f854609fc9aebffc1fa2a2e14d5231cce9b71d0
This commit is contained in:
Ian Wienand 2020-09-21 13:05:29 +10:00
parent 9fdbd56d16
commit 016e961890
2 changed files with 11 additions and 3 deletions

View File

@ -1,11 +1,11 @@
- name: 'Ensure {{ item.namespace }}/{{ item.name }} directory'
- name: 'Ensure {{ item.namespace }} top-level directory'
file:
path: '/root/.ansible/collections/ansible_collections/{{ item.namespace }}/{{ item.name }}'
path: '/root/.ansible/collections/ansible_collections/{{ item.namespace }}/'
state: directory
mode: 0755
- name: 'Link in {{ item.namespace }}/{{ item.name }} collection'
file:
src: '{{ ansible_user_dir}}/src/github.com/{{repo}}'
src: '{{ ansible_user_dir}}/src/github.com/{{ item.repo }}'
dest: '/root/.ansible/collections/ansible_collections/{{ item.namespace }}/{{ item.name }}'
state: link

View File

@ -81,6 +81,14 @@
# NOTE(ianw): 2019-06-11 pinned to stable branch until we handle 1.0
# http://lists.openstack.org/pipermail/openstack-infra/2019-June/006400.html
override-checkout: stable/0.x
- name: github.com/ansible-collections/ansible.posix
override-checkout: main
- name: github.com/ansible-collections/ansible.netcommon
override-checkout: main
- name: github.com/ansible-collections/community.crypto
override-checkout: main
- name: github.com/ansible-collections/community.general
override-checkout: main
vars:
bridge_ansible_name: '{{ ansible_user_dir}}/src/github.com/ansible/ansible'
bridge_ansible_version: null