# Lost all history of ansible role after delete of a another role

**URL:** <https://forum.ansible.com/t/lost-all-history-of-ansible-role-after-delete-of-a-another-role/1753>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [October 17, 2023, 3:03pm UTC](https://forum.ansible.com/t/lost-all-history-of-ansible-role-after-delete-of-a-another-role/1753 "2023-10-17T15:03:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [January 9, 2024, 4:21pm UTC](https://forum.ansible.com/t/lost-all-history-of-ansible-role-after-delete-of-a-another-role/1753/5 "2024-01-09T16:21:02Z")

</div>

This is another thread that got lost among all the other ones, apologies for that.

I’ve corrected the roles mentioned via the following steps:

1. `ansible-galaxy role import --role-name=gitlab-runner riemers ansible-gitlab-runner` … this brought the `riemers.gitlab-runner` role back into the system with all of it’s versions.
2. In the database, I set the download count for the role to 982975 based on the value in old-galaxy.
3. Deleted the bad role via curl … `curl -X DELETE -H 'Authorization: token MYTOKEN' https://galaxy.ansible.com/api/v1/roles/37080/`

I think that leaves us in the state you asked for in this post …

[https://galaxy.ansible.com/ui/standalone/roles/riemers/gitlab-runner/versions/](https://galaxy.ansible.com/ui/standalone/roles/riemers/gitlab-runner/versions/)

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/4/44208cca44b612bc3d4482a4039fa54c0557b77a.png)

Things to keep in mind …

We’ve revamped the backend import code to allow the --role-name parameter to work correctly AND for you to be able to set the value for the name and the namespace in meta/main.yml

> [@Ansible Galaxy’s role import enhancements and fixes for the new year](http://forum.ansible.com/t/ansible-galaxy-s-role-import-enhancements-and-fixes-for-the-new-year/3206):
>
> Ansible Galaxy’s role import enhancements and fixes for the new year. Import logging … Remember when you could see a nice formatted list of messages when your roles were imported? We’ve brought that back (see [Role import logging by jctanner · Pull Request #1959 · ansible/galaxy\_ng · GitHub](https://github.com/ansible/galaxy_ng/pull/1959))! You may have already noticed, but when you run “ansible-galaxy role import” it displays colorized messages about what the backend is doing with the role (where it’s cloning from, what lint tests pass or fa…

In this case, you should always pass `--role-name=gitlab-runner` for your imports.

---

_[View the full topic](https://forum.ansible.com/t/lost-all-history-of-ansible-role-after-delete-of-a-another-role/1753)._
