# Role versions doesn't match the GitHub releases

**URL:** <https://forum.ansible.com/t/role-versions-doesnt-match-the-github-releases/1693>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [October 13, 2023, 12:46pm UTC](https://forum.ansible.com/t/role-versions-doesnt-match-the-github-releases/1693 "2023-10-13T12:46:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![konstruktoid](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/konstruktoid/32/10207_2.png) [@konstruktoid](https://forum.ansible.com/u/konstruktoid)\
**Post date:** [October 13, 2023, 12:46pm UTC](https://forum.ansible.com/t/role-versions-doesnt-match-the-github-releases/1693/1 "2023-10-13T12:46:41Z")

</div>

My name space: [Galaxy NG](https://galaxy.ansible.com/ui/standalone/namespaces/3850/)  
My GH repositories: [konstruktoid (konstruktoid) / Repositories · GitHub](https://github.com/konstruktoid?tab=repositories&q=ansible-role&type=source&language=&sort=)

Baseline role: v0.1.1 in Galaxy-NG, v0.1.5 in Old Galaxy ([Ansible Galaxy](https://old-galaxy.ansible.com/konstruktoid/baseline))

[Galaxy NG](https://galaxy.ansible.com/ui/standalone/roles/konstruktoid/dns/) shows it was updated 15 days ago: v0.1.0, [Ansible Galaxy](https://old-galaxy.ansible.com/konstruktoid/dns) v0.1.2 with last import 18 days ago

[Galaxy NG](https://galaxy.ansible.com/ui/standalone/roles/konstruktoid/hardening/) is correct but [Galaxy NG](https://galaxy.ansible.com/ui/standalone/namespaces/3850/) isn’t

---

<div class="post-metadata">

**Author:** ![geoffreyvanwyk](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/geoffreyvanwyk/32/995_2.png) [@geoffreyvanwyk](https://forum.ansible.com/u/geoffreyvanwyk)\
**Post date:** [October 19, 2023, 11:42am UTC](https://forum.ansible.com/t/role-versions-doesnt-match-the-github-releases/1693/2 "2023-10-19T11:42:40Z")

</div>

I have the same problem. For me, the versions are outdated on both the old and new Galaxies.

---

<div class="post-metadata">

**Author:** ![geoffreyvanwyk](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/geoffreyvanwyk/32/995_2.png) [@geoffreyvanwyk](https://forum.ansible.com/u/geoffreyvanwyk)\
**Post date:** [October 19, 2023, 12:14pm UTC](https://forum.ansible.com/t/role-versions-doesnt-match-the-github-releases/1693/3 "2023-10-19T12:14:05Z")

</div>

I get the error:

```auto
File "/venv/lib64/python3.11/site-packages/galaxy_importer/schema.py", line 522, in parse

[40](https://github.com/geoffreyvanwyk/ansible-role-moodle/actions/runs/6433373176/job/17470295521#step:5:41) 
raise exc.LegacyRoleSchemaError("unknown field in galaxy_info") from e

```

_Unknown field in galaxy\_info._

I checked and saw all the fields in my meta/main.yml are valid: [https://github.com/geoffreyvanwyk/ansible-role-moodle/blob/v1.2.6/meta/main.yml](https://github.com/geoffreyvanwyk/ansible-role-moodle/blob/v1.2.6/meta/main.yml)

It is a pity that it does not say which field.

The error is raised in this code: [https://github.com/ansible/galaxy-importer/blob/master/galaxy\_importer/schema.py](https://github.com/ansible/galaxy-importer/blob/master/galaxy_importer/schema.py)

---

<div class="post-metadata">

**Author:** ![geoffreyvanwyk](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/geoffreyvanwyk/32/995_2.png) [@geoffreyvanwyk](https://forum.ansible.com/u/geoffreyvanwyk)\
**Post date:** [October 19, 2023, 3:16pm UTC](https://forum.ansible.com/t/role-versions-doesnt-match-the-github-releases/1693/4 "2023-10-19T15:16:01Z")

</div>

It is now fixed with my latest import. 🙌

```auto
Run ansible-galaxy role import -vvv --api-key *** $(echo geoffreyvanwyk/ansible-role-moodle | cut -d/ -f1) $(echo geoffreyvanwyk/ansible-role-moodle | cut -d/ -f2)
ansible-galaxy [core 2.15.5]
  config file = None
  configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/ansible
  ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/hostedtoolcache/Python/3.11.6/x64/bin/ansible-galaxy
  python version = 3.11.6 (main, Oct 3 2023, 04:42:57) [GCC 11.4.0] (/opt/hostedtoolcache/Python/3.11.6/x64/bin/python)
  jinja version = 3.1.2
  libyaml = True
No config file found; using defaults
Created /home/runner/.ansible/galaxy_token
Successfully submitted import request 2052427529857801528107197227152615223

role imported successfully

```

The correct version number (matching the latest tag in Github) also appears on Galaxy now.

I deleted all the failed tags since the last successful one on Github.
