I have been using Ansible enthusiastically for years and am a great friend of open-source and therefore also try to publish my Ansible code.
However, since the launch of galaxy-ng I still have unsolved problems when publishing my Ansible roles and need help. I will be at CfgMgmntCamp and we can discuss this IRL.
Since I was asked to make a forum post about my problems, I’ll do that now…
I am unable to opt-out of ansible-lightspeed at the ansible-archive and roles-ansible namespace. (Error 400 - : The server was unable to complete your request.)
I am unable to delete or archive any ansible role I ever published at any namespace.
I am unable to publish any role to any namespace except the roles-ansible. The ansible role I tried are all in the github.com/roles-ansible/ Github organisation.
What do I want?
I want to delete or mark all ansible roles as old/archived in all namespaces except the l3d namespace. And I want to publish all my ansible roles from the roles-ansible github organisation to the l3d namespace, but I am unable to do so.
Instead I can publish my ansible roles from the roles-ansible github organisation to the roles-ansible role namespace.
And ansible collections?
For ansible collections this is working, see Collection Namespace L3D.
That’s why I am thinking about archiving all my ansible roles and only publish ansible collections. But since I am unable to archive/delete my own ansible roles, thats not such a good idea either
I am looking forward speaking with one of you guys at CfgMgmntCamp. Maybe we can figure out a soluting when we see us in real life.
Hi @L3D . I’m looking into this now. So to be clear, you want all the other namespaces and roles delete except l3d?
And today, you can only upload to the roles-ansible namespace?
I can start deleting everything but those two (so we have a working one, and a nonworking one). And then debug why you can’t upload to the l3d namespace. Does this sound correct?
Are there any better options than deleting? I am thinking about users who have some of my roles in their requirements.yml file and pulling/updating the role will no longer works since it has been deleted (and is now in the l3d namespace).
If there is no better way, then I guess deleting it is.
I tested uploading roles and am happy to report that updating my l3d.test test role worked
My next step will be to clean up all my ansible roles and have them point to the l3d role namespace
I ‘think’ I can move roles from one namespace to another. I can give that a try if you let me know which batch of roles you want moved to the l3d role namespace.
As for deleting your own roles, I think you should be able to. See the role deletion docs and let us know how it goes.