# Having trouble choosing which namespace to upload my ansible roles to

**URL:** <https://forum.ansible.com/t/having-trouble-choosing-which-namespace-to-upload-my-ansible-roles-to/2114>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [November 2, 2023, 3:00am UTC](https://forum.ansible.com/t/having-trouble-choosing-which-namespace-to-upload-my-ansible-roles-to/2114 "2023-11-02T03:00:22Z")\
**Posts on this page:** 4\
**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:** [November 2, 2023, 3:00am UTC](https://forum.ansible.com/t/having-trouble-choosing-which-namespace-to-upload-my-ansible-roles-to/2114/1 "2023-11-02T03:00:22Z")

</div>

> [@Namespace changed and collection upload not working](http://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/41):
>
> Can you clarify why you think these are lost?

Yes, I am having trouble choosing which namespace to upload my ansible roles to.

For example, my ansible role `https://github.com/roles-ansible/ansible_role_test.git` is available in `https://galaxy.ansible.com/ui/standalone/roles/roles-ansible/test/` and `https://galaxy.ansible.com/ui/standalone/roles/l3d/test/`.  
I want to use it as ansible role `l3d.test`, so I add “namespace: l3d” to the meta/main.yml, see `https://github.com/roles-ansible/ansible_role_test/blob/main/meta/main.yml#L5`.

But the galaxy role import tool only imports it into roles-ansible.test. Not only is that a namespace I don’t want to use for it, it’s also a namespace with a “-” in the name. And stuff like that has had weird effects on ansible lately.

I miss the ability to delete or at least archive roles that are no longer updated. And I miss the ability to choose the namespace I want to use.  
I miss the ability to add a custom profile picture to namespaces. Especially when I don’t have control over the github user with the name of my namespace.

Which brings me to my roadmap question. Is there any thought of taking back control of ansible roles and ansible role namespaces? Is there a bigger idea of how Galaxy should look for ansible roles in the future and I am just too impatient?

Because instead of trying to get my ansible roles to work, I could say screw all the ansible roles on galaxy-ng, I will just upload ansible collections. And putting ansible roles into ansible collections is a bit of work, but absolutely possible. I did just that with my l3d.test role using the l3d.testing collection, see:

```auto
Github: https://github.com/roles-ansible/ansible_collection_test.git
Galacy collection: https://galaxy.ansible.com/ui/repo/published/l3d/testing/
Ansible role l3d.test in the l3d.testing collection: https://galaxy.ansible.com/ui/repo/published/l3d/testing/content/role/test/

```

It depends a bit on what happened to the Ansible roles. They are now labelled as legacy. Will they be deleted in galaxy-ng one day? Is it worth spending time and energy on them?

Thank you for reading this post. I love ansible and open source and would like to share my ansible roles and collections. And I hope that sharing ansible roles via galaxy-ng will soon be fun again.

* * *

And sorry for putting the links as a code block, the last time I put them as links the anti-spam bot was very trigger-happy.

---

<div class="post-metadata">

**Author:** ![gwmngilfen](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gwmngilfen/32/6_2.png) [@gwmngilfen](https://forum.ansible.com/u/gwmngilfen)\
**Post date:** [November 2, 2023, 4:46pm UTC](https://forum.ansible.com/t/having-trouble-choosing-which-namespace-to-upload-my-ansible-roles-to/2114/2 "2023-11-02T16:46:16Z")

</div>

Moving to a new topic at @tannerjc’s request.

> [@L3D](#):
>
> And sorry for putting the links as a code block, the last time I put them as links the anti-spam bot was very trigger-happy.

You are Trust Level 1 now which means most spam stuff no longer applies to you. Links to GitHub are exempt from the checker anyway, I’ll double check about galaxy (and add it, if not)

Edit: it wasn’t, I’ve added it now

---

<div class="post-metadata">

**Author:** ![jlmitch5](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jlmitch5/32/578_2.png) [@jlmitch5](https://forum.ansible.com/u/jlmitch5)\
**Post date:** [November 2, 2023, 5:11pm UTC](https://forum.ansible.com/t/having-trouble-choosing-which-namespace-to-upload-my-ansible-roles-to/2114/3 "2023-11-02T17:11:16Z")

</div>

> [@Namespace changed and collection upload not working](http://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/43):
>
> It depends a bit on what happened to the Ansible roles. They are now labelled as legacy. Will they be deleted in galaxy-ng one day? Is it worth spending time and energy on them?

We don’t have any plans to delete roles. At a certain point, we were considering deprecation in favor of collections, which is probably why you see some sort of “legacy” text somewhere, but it’s clear roles are important to many in the community based on the feedback we’ve gotten here and during our beta period, so we pivoted to making sure they were kept, and are working on improvements to searching and filtering for them because that has been a big ask here on the forum. References to “legacy” roles are probably just clean-up that got missed.

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [November 2, 2023, 6:35pm UTC](https://forum.ansible.com/t/having-trouble-choosing-which-namespace-to-upload-my-ansible-roles-to/2114/4 "2023-11-02T18:35:21Z")

</div>

> [@L3D](#):
>
> I miss the ability to delete or at least archive roles that are no longer updated.

There isn’t a button in the UI for deleting roles yet, but there is a way to do it via the API. I’ve covered this in more than 1 post so far, so I’m adding it to the docs via this [PR](https://github.com/ansible/galaxy_ng/pull/1961)
