system-config/playbooks/roles/install-ansible/tasks/install_ansible_collection.yaml
Ian Wienand 016e961890 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
2020-09-21 17:27:23 +10:00

12 lines
434 B
YAML

- name: 'Ensure {{ item.namespace }} top-level directory'
file:
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/{{ item.repo }}'
dest: '/root/.ansible/collections/ansible_collections/{{ item.namespace }}/{{ item.name }}'
state: link