diff --git a/playbooks/roles/install-ansible/tasks/install_ansible_collection.yaml b/playbooks/roles/install-ansible/tasks/install_ansible_collection.yaml index b54281bc37..f7b79073e1 100644 --- a/playbooks/roles/install-ansible/tasks/install_ansible_collection.yaml +++ b/playbooks/roles/install-ansible/tasks/install_ansible_collection.yaml @@ -4,7 +4,8 @@ state: directory mode: 0755 -- name: 'Clone {{ item.namespace }}/{{ item.name }} collection' - git: - repo: '{{ item.repo }}' +- name: 'Link in {{ item.namespace }}/{{ item.name }} collection' + file: + src: '{{ ansible_user_dir}}/src/github.com/{{repo}}' dest: '/root/.ansible/collections/ansible_collections/{{ item.namespace }}/{{ item.name }}' + state: link diff --git a/playbooks/roles/install-ansible/tasks/main.yaml b/playbooks/roles/install-ansible/tasks/main.yaml index 5b69dda8ee..31119d5f74 100644 --- a/playbooks/roles/install-ansible/tasks/main.yaml +++ b/playbooks/roles/install-ansible/tasks/main.yaml @@ -46,18 +46,18 @@ include_tasks: install_ansible_collection.yaml when: _install_ansible_from_devel is defined loop: + - namespace: ansible + name: netcommon + repo: ansible-collections/ansible.netcommon - namespace: ansible name: posix - repo: https://github.com/ansible-collections/ansible.posix + repo: ansible-collections/ansible.posix - namespace: community name: general - repo: https://github.com/ansible-collections/community.general + repo: ansible-collections/community.general - namespace: community name: crypto - repo: https://github.com/ansible-collections/community.crypto - - namespace: ansible - name: netcommon - repo: https://github.com/ansible-collections/ansible.netcommon + repo: ansible-collections/community.crypto - name: Ensure required Ansible build packages for non-wheel architectures apt: