Local private ansible collections creation - not working for me

Problem: I did create product " Local Ansible Playbooks" and than repository " Ansible private roles" in the /var/lib/pulp/imports/ansible_collections i did run:
ansible-galaxy collection init local.roles
cd local/roles
ansible-galaxy role init roles/example_role
cd …/…
ansible-galaxy collection build local/roles
i did point the repository to the:
file:///var/lib/pulp/imports/ansible_collections/
when i do try to sync the repository i got the error
[Errno 21] Is a directory: ‘/var/lib/pulp/imports/ansible_collections’
Expected outcome:
i do want create local repository for our ansible roles and playbooks and want to be able to sync it

Foreman and Proxy versions:
foreman 3.14 katelo 4.16
ansible 2.12
server operatin system Red Hat Enterprise Linux release 9.5

1 Like

Hi @spehyr ,

I’m not 100% sure if we support syncing filesystem ansible collections, I believe Katello expects the endpoint to point to a galaxy server. Pulp does seem to have git collection support (so you would sync via git+file://), but I’m not sure if that’s integrated into Katello yet. I’m checking to see if others have more information.

1 Like