# Issue with access to some of my ansible roles at galaxy-ng \[need help from admin/support\]

**URL:** <https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [January 15, 2025, 1:32pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620 "2025-01-15T13:32:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![L3D](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/l3d/32/911_2.png) [@L3D](https://forum.ansible.com/u/L3D)\
**Post date:** [January 15, 2025, 1:32pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/1 "2025-01-15T13:32:14Z")

</div>

Hello everyone.

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](https://cfgmgmtcamp.org/ghent2025/) and we can discuss this IRL.

Since I was asked to make a forum post about my problems, I’ll do that now…

> [@Ansible Contributor Summit at CfgMgmtCamp 2025](https://forum.ansible.com/t/ansible-contributor-summit-at-cfgmgmtcamp-2025/9658/10):
>
> Hi @L3D Sorry you’ve had issues with galaxy-ng, we know there are some edge cases in permissions management. Though we can help now, If you’d be able to start a forum post in #galaxy-ng we can help you. Please include GitHub account name (and old name if it’s changed) Links to any Galaxy Roles which you can’t access anymore Looking forward to meeting you at CfgMgmtCamp

My Github User is [DO1JLR](https://github.com/do1jlr). I publish most of my ansible roles and collections at [github.com/roles-ansible/](https://github.com/roles-ansible/).

At galaxy-ng I should own these namespaces:

- [role namespace l3d](https://galaxy.ansible.com/ui/standalone/namespaces/9259/)
- [role namespace do1jlr](https://galaxy.ansible.com/ui/standalone/namespaces/8798/)
- [role namespace DO1JLR](https://galaxy.ansible.com/ui/standalone/namespaces/10239/)
- [role namespace ansible-archive](https://galaxy.ansible.com/ui/standalone/namespaces/1856/)
- [role namespace roles-ansible](https://galaxy.ansible.com/ui/standalone/namespaces/1858/)

I am unable to opt-out of ansible-lightspeed at the [ansible-archive](https://galaxy.ansible.com/ui/standalone/namespaces/1856/) and [roles-ansible](https://galaxy.ansible.com/ui/standalone/namespaces/1858/) 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](https://galaxy.ansible.com/ui/standalone/namespaces/1858/). The ansible role I tried are all in the [github.com/roles-ansible/](https://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](https://galaxy.ansible.com/ui/namespaces/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](https://forum.ansible.com/t/ansible-contributor-summit-at-cfgmgmtcamp-2025/9658). Maybe we can figure out a soluting when we see us in real life. 👋

---

<div class="post-metadata">

**Author:** ![gundalow](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gundalow/32/99_2.png) [@gundalow](https://forum.ansible.com/u/gundalow)\
**Post date:** [January 15, 2025, 1:53pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/2 "2025-01-15T13:53:59Z")

</div>

@L3D Thanks for all the details.  
Someone will get back to you in the next few days

---

<div class="post-metadata">

**Author:** ![gundalow](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gundalow/32/99_2.png) [@gundalow](https://forum.ansible.com/u/gundalow)\
**Post date:** [January 16, 2025, 1:28pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/3 "2025-01-16T13:28:28Z")

</div>

[@PartnerEngTeam](https://forum.ansible.com/groups/partnerengteam) Can you please look at the Galaxy issue that @L3D is reporting, Thanks

---

<div class="post-metadata">

**Author:** ![L3D](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/l3d/32/911_2.png) [@L3D](https://forum.ansible.com/u/L3D)\
**Post date:** [January 18, 2025, 4:14am UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/4 "2025-01-18T04:14:37Z")

</div>

Clearly something changed.

I tried to import a new ansible role and it appeared in the l3d namespace at [l3d.cwtv\_telegram\_jitsi\_bot](https://galaxy.ansible.com/ui/standalone/roles/l3d/cwtv_telegram_jitsi_bot/).

I also noticed, my github action stoped working:

See code:

```auto
 Error running Ansible command: Command '['/usr/local/bin/ansible-galaxy', 'role', 'import', '-vvv', '--api-key', '***', '--branch', 'main', 'roles-ansible', 'ansible_role_cwtv_telegram_jitsi_bot']' returned non-zero exit status 1.

ansible-galaxy [core 2.18.1]
  config file = None
  configured module search path = ['/github/home/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.13/site-packages/ansible
  ansible collection location = /github/home/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible-galaxy
  python version = 3.13.1 (main, Jan 14 2025, 05:25:12) [GCC 12.2.0] (/usr/local/bin/python3.13)
  jinja version = 3.1.5
  libyaml = True
No config file found; using defaults
Created /github/home/.ansible/galaxy_token

ERROR! Error when finding available api versions from default (https://galaxy.ansible.com) (HTTP Code: 401, Message: Unauthorized)

```

Details: [v1.0.0 · roles-ansible/ansible\_role\_cwtv\_telegram\_jitsi\_bot@06c4edc · GitHub](https://github.com/roles-ansible/ansible_role_cwtv_telegram_jitsi_bot/actions/runs/12840674540/job/35809603619)

Github Action Source; [GitHub - ansible-actions/ansible-galaxy-action: This Action will import ansible roles on galaxy-ng](https://github.com/ansible-actions/ansible-galaxy-action)

---

<div class="post-metadata">

**Author:** ![L3D](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/l3d/32/911_2.png) [@L3D](https://forum.ansible.com/u/L3D)\
**Post date:** [January 19, 2025, 12:51am UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/5 "2025-01-19T00:51:58Z")

</div>

Looks my galaxy token expired. Or someone fixed stuff at galaxy-ng. I created a new token and the pipeline is working again.

But I still want to know how to controll the namespace and how to delete, archive and upload roles without getting surprised about the role-namespace.

---

<div class="post-metadata">

**Author:** ![samccann](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/samccann/32/18_2.png) [@samccann](https://forum.ansible.com/u/samccann)\
**Post date:** [January 21, 2025, 7:29pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/6 "2025-01-21T19:29:51Z")

</div>

Hi @L3D . I’m looking into this now. So to be clear, you want all the other namespaces and roles delete except [l3d](https://galaxy.ansible.com/ui/standalone/namespaces/9259)?

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?

---

<div class="post-metadata">

**Author:** ![L3D](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/l3d/32/911_2.png) [@L3D](https://forum.ansible.com/u/L3D)\
**Post date:** [January 22, 2025, 10:39am UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/7 "2025-01-22T10:39:27Z")

</div>

Hey @samccann, thanks for looking into this.

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](https://galaxy.ansible.com/ui/standalone/roles/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 😅

Is there any way I can delete roles myself?

---

<div class="post-metadata">

**Author:** ![samccann](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/samccann/32/18_2.png) [@samccann](https://forum.ansible.com/u/samccann)\
**Post date:** [January 22, 2025, 3:20pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/8 "2025-01-22T15:20:15Z")

</div>

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](https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/community/userguide/#deleting-roles) and let us know how it goes.

---

<div class="post-metadata">

**Author:** ![L3D](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/l3d/32/911_2.png) [@L3D](https://forum.ansible.com/u/L3D)\
**Post date:** [February 1, 2025, 1:10pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/9 "2025-02-01T13:10:39Z")

</div>

Thanks a lot for the offer @samccann

The role deletion helped a lot.

It did not worked with the ansible-galaxy tooling:

```bash
 $ ansible-galaxy role delete --token <hidden> roles-ansible packages
Role roles-ansible.packages not found. Maybe it was deleted previously?

```

But with the HTTP Client:

```bash
curl "https://galaxy.ansible.com/api/v1/roles/?owner__username=roles-ansible&name=packages" | jq
[...]
"id": 32281
[...]

 curl -X DELETE -H "Authorization: token <hidden>" https://galaxy.ansible.com/api/v1/roles/32281/
curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)

```

The response during deleting was not that helpfull, but it worked.

The result is, what I wanted:

- [roles-ansible.packages](https://galaxy.ansible.com/ui/standalone/roles/roles-ansible/packages/) is deleted
- [l3d.packages](https://galaxy.ansible.com/ui/standalone/roles/l3d/packages/) is imported into the desired namespace

* * *

It will take some time until I fixed all my ansible roles, but now I am able to do that. Thanks a lot ❤

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 3, 2025, 1:11pm UTC](https://forum.ansible.com/t/issue-with-access-to-some-of-my-ansible-roles-at-galaxy-ng-need-help-from-admin-support/39620/10 "2025-03-03T13:11:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
