# Galaxy API URL for listing supported platforms

**URL:** <https://forum.ansible.com/t/galaxy-api-url-for-listing-supported-platforms/5613>\
**Category:** Get Help\
**Tags:** api, role, galaxy, fedora, galaxy-ng\
**Created:** [May 8, 2024, 12:01am UTC](https://forum.ansible.com/t/galaxy-api-url-for-listing-supported-platforms/5613 "2024-05-08T00:01:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stdevel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stdevel/32/279_2.png) [@stdevel](https://forum.ansible.com/u/stdevel)\
**Post date:** [May 8, 2024, 12:01am UTC](https://forum.ansible.com/t/galaxy-api-url-for-listing-supported-platforms/5613/1 "2024-05-08T00:01:23Z")

</div>

When writing Ansible roles, most users adjust the `meta/main.yml` file to include platforms the role is designed for - e.g. Fedora 40. In a comment `molecule` usually links to the URL [https://galaxy.ansible.com/api/v1/platforms/](https://galaxy.ansible.com/api/v1/platforms/) which now points to 404 as galaxy-ng is online.

Is there another list of all the supported platforms? I couldn’t find them in the `ansible-galaxy` or `molecule` documentation - what am I missing?

Thanks a lot in advance!

---

<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:** [May 8, 2024, 2:57pm UTC](https://forum.ansible.com/t/galaxy-api-url-for-listing-supported-platforms/5613/2 "2024-05-08T14:57:26Z")

</div>

So keep in mind I don’t really know how any of this works. This seems to be a changing landscape and documentation hasn’t caught up with it yet.

I can find a list of platforms [here](https://github.com/ansible/ansible/blob/stable-2.16/lib/ansible/galaxy/data/apb/meta/main.yml.j2#L20), but that is for the current release of ansible-core. In the upcoming 2.17 release, that information disappears. I don’t know why or where. There is a semi-related forum topic [Does galaxy-importer need its own documentation?](http://forum.ansible.com/t/does-galaxy-importer-need-its-own-documentation/4979) but so far it doesn’t give a lot of details on what’s going on (or how best to let people like yourself know what’s going on).

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [May 9, 2024, 1:51pm UTC](https://forum.ansible.com/t/galaxy-api-url-for-listing-supported-platforms/5613/3 "2024-05-09T13:51:05Z")

</div>

My understanding is that Galaxy\_NG doesn’t support platforms anymore (possibly as a result of the pulp2 to pulp3 migration?).

> [@Role meta data platform key broken?](http://forum.ansible.com/t/role-meta-data-platform-key-broken/4651/9):
>
> platforms is ignored in the current version of galaxy, we are in the middle of removing it from the generator template in core.

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [May 16, 2024, 3:01pm UTC](https://forum.ansible.com/t/galaxy-api-url-for-listing-supported-platforms/5613/4 "2024-05-16T15:01:55Z")

</div>

No, they are still updated in the backend, they were just a feature that was discontinued in favor of tags

---

<div class="post-metadata">

**Author:** ![shertel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/shertel/32/1241_2.png) [@shertel](https://forum.ansible.com/u/shertel)\
**Post date:** [May 20, 2024, 2:46pm UTC](https://forum.ansible.com/t/galaxy-api-url-for-listing-supported-platforms/5613/5 "2024-05-20T14:46:37Z")

</div>

It’s not an error yet, but I could see it being deprecated by GalaxyNG or disallowed by ansible-lint since it was an intentional decision to not implement it for GalaxyNG. I removed it from the ansible-core templates since Galaxy is the source of truth. None of the core templates ever documented the full list of options, just pointed to the Galaxy. I really liked the `platforms` convention for documentation of standalone roles though, just would not add this information in the `galaxy_info` key anymore.

old list: [nginx-container/meta/main.yml at b3900ec12c3c0c26f4ebffbab0fc42200ddac5f4 · ansible/nginx-container · GitHub](https://github.com/ansible/nginx-container/blob/HEAD/meta/main.yml#L30-L177)  
much more recent: [ansible-sandbox/get-galaxy-platforms at 363024e19300281123252c2273828f38a628c70b · dmsimard/ansible-sandbox · GitHub](https://github.com/dmsimard/ansible-sandbox/tree/HEAD/get-galaxy-platforms) (thanks to @rfc2549).

It seems ansible-lint is still adding new platforms: [Add AstraLinux platform identification by dentist128 · Pull Request #4111 · ansible/ansible-lint · GitHub](https://github.com/ansible/ansible-lint/pull/4111/files)
