Galaxy API URL for listing supported platforms

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/ 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!

1 Like

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, 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? 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).

2 Likes

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

2 Likes

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

1 Like

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
much more recent: ansible-sandbox/get-galaxy-platforms at 363024e19300281123252c2273828f38a628c70b · dmsimard/ansible-sandbox · GitHub (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

1 Like