- 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