# Ansible Galaxy: role published under incorrect namespace

**URL:** <https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [August 6, 2025, 4:54pm UTC](https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217 "2025-08-06T16:54:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![volker-raschek](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/volker-raschek/32/9226_2.png) [@volker-raschek](https://forum.ansible.com/u/volker-raschek)\
**Post date:** [August 6, 2025, 4:54pm UTC](https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217/1 "2025-08-06T16:54:16Z")

</div>

Hello everyone,  
I made a mistake when publishing my Ansible role. I defined the namespace in meta/main.yaml. It contained my GitHub username with an underscore `volker_raschek` instead of `volker-raschek`.

I deleted the Ansible role, corrected meta/main.yaml, and re-registered the Ansible role. Unfortunately, Ansible detects that the role was previously published under the old name `volker_raschek.unix_users` and uses this name instead of the new one.

All my roles contain `volker-raschek` as the namespace, except for one role. This is quite annoying. How can I correct the namespace or have it corrected so that the namespace of my roles is consistent?

The role in question is:

> **[Ansible Galaxy](https://galaxy.ansible.com/ui/standalone/roles/volker_raschek/unix_users/)**

Here is an excerpt from the import logs:

```plaintext
==== CHECK FOR MATCHING ROLE(S) ==== 
user:volker-raschek repo:ansible-role-unix-users matched existing role volker_raschek.unix_users id:41338 

```

---

<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:** [August 6, 2025, 7:38pm UTC](https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217/2 "2025-08-06T19:38:00Z")

</div>

I’ll take a look at this. Might take me a bit of digging.

---

<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:** [August 6, 2025, 7:48pm UTC](https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217/3 "2025-08-06T19:48:48Z")

</div>

I’ll be deleting the mistaken role and mistaken role namespace. Will reply once I complete that.

---

<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:** [August 6, 2025, 8:04pm UTC](https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217/4 "2025-08-06T20:04:01Z")

</div>

Mistaken role and role namespace have been deleted. Try the upload again and if it works, please mark this as solved by clicking the little checkmark.

---

<div class="post-metadata">

**Author:** ![volker-raschek](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/volker-raschek/32/9226_2.png) [@volker-raschek](https://forum.ansible.com/u/volker-raschek)\
**Post date:** [August 7, 2025, 6:24am UTC](https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217/5 "2025-08-07T06:24:58Z")

</div>

Hi @samccann,

thanks for your quick response and support. I’ve uploaded the ansible role again and the role is now part of my correct namespace.

Thank your very much  
Volker

---

<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:** [September 6, 2025, 6:25am UTC](https://forum.ansible.com/t/ansible-galaxy-role-published-under-incorrect-namespace/44217/6 "2025-09-06T06:25:01Z")

</div>

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