# 307 Temporary Redirect when trying to import role into Galaxy NG via CLI

**URL:** <https://forum.ansible.com/t/307-temporary-redirect-when-trying-to-import-role-into-galaxy-ng-via-cli/1574>\
**Category:** Get Help\
**Tags:** role, galaxy-ng\
**Created:** [October 9, 2023, 6:08pm UTC](https://forum.ansible.com/t/307-temporary-redirect-when-trying-to-import-role-into-galaxy-ng-via-cli/1574 "2023-10-09T18:08:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kso512](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kso512/32/1030_2.png) [@kso512](https://forum.ansible.com/u/kso512)\
**Post date:** [October 9, 2023, 9:48pm UTC](https://forum.ansible.com/t/307-temporary-redirect-when-trying-to-import-role-into-galaxy-ng-via-cli/1574/3 "2023-10-09T21:48:02Z")

</div>

Thanks James!

Here’s the documentation I was referring to, that points everyone to [beta-galaxy.ansible.com](http://beta-galaxy.ansible.com); linked at the top of the new Galaxy NG - [User Guide - Galaxy NG](https://ansible.readthedocs.io/projects/galaxy-ng/en/latest/community/userguide/)

After pointing to just [galaxy.ansible.com](http://galaxy.ansible.com), I got the error referred to in [this post](http://forum.ansible.com/t/git-clone-issue-when-attempting-to-import-role/1426/2), which I think I fixed by just calling the short name of the repo instead of the whole URL. That lead me to the error in [this post](http://forum.ansible.com/t/regex-bug-in-galaxy-importer/1431/3), and after removing the “namespace” line from my meta file, I get this error which says it’s already been imported under a very old tag (“1.0.9” when the latest from today is “1.0.62”):

```auto
$ ansible-galaxy role import -vvvvv kso512 checkmk_server
ansible-galaxy [core 2.14.10]
  config file = /srv/nfs/in/git/projects/kso512/checkmk_server/ansible.cfg
  configured module search path = ['/home/kso/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/kso/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-galaxy
  python version = 3.11.6 (main, Oct 8 2023, 05:06:43) [GCC 13.2.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
Using /srv/nfs/in/git/projects/kso512/checkmk_server/ansible.cfg as config file
Initial connection to galaxy_server: https://galaxy.ansible.com/api/
Opened /home/kso/.ansible/galaxy_token
Calling Galaxy at https://galaxy.ansible.com/api/
Found API version 'v3, pulp-v3, v1' with Galaxy server beta (https://galaxy.ansible.com/api/)
Calling Galaxy at https://galaxy.ansible.com/api/v1/imports/
Successfully submitted import request 2051411624525555067319261416874510038
Calling Galaxy at https://galaxy.ansible.com/api/v1/imports?id=2051411624525555067319261416874510038
running
Calling Galaxy at https://galaxy.ansible.com/api/v1/imports?id=2051411624525555067319261416874510038
kso512.checkmk_server 1.0.9 has already been imported
  File "/venv/lib64/python3.11/site-packages/pulpcore/tasking/tasks.py", line 66, in _execute_task
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/app/galaxy_ng/app/api/v1/tasks.py", line 145, in legacy_role_import
    raise Exception(msg)

```

This also seems to be happening [here](http://forum.ansible.com/t/failed-role-import-to-galaxy-ng/1534).

---

_[View the full topic](https://forum.ansible.com/t/307-temporary-redirect-when-trying-to-import-role-into-galaxy-ng-via-cli/1574)._
