- name: 'Ensure {{ item.namespace }}/{{ item.name }} directory' file: path: '/root/.ansible/collections/ansible_collections/{{ item.namespace }}/{{ item.name }}' state: directory mode: 0755 - name: 'Clone {{ item.namespace }}/{{ item.name }} collection' git: repo: '{{ item.repo }}' dest: '/root/.ansible/collections/ansible_collections/{{ item.namespace }}/{{ item.name }}'