I've updated my published RPM building tools for ansible-core and ansible at:
https://github.com/nkadel/ansiblerepo/
They build ansible 5.2.0 for RHEL 7, RHEL 8, and Fedora 35, and they
build ansible-core 2.11.7 for RHEL 7 and RHEL 8. They also build
ansible-core 2.12.1 for Fedora 35.
Note that ansible 5.2.0 does not include ansible-core, despite the
note in its release announcement. It has a published requirement of
ansible-core 2.12, which is aggressive than it need be, and works
quite well with ansible-core 2.11.7 in my limited testing under RHEL 7
and RHEL 8. This avoids the demands for python 3.8 in ansible-core
2.12, which does fail to build and install with the system standard
python 3.6 on RHEL 7 and RHEL 8.
I took a shot at building the suite for Amazon Linux 2, but there were
too many missing dependencies for me to resolve in reasonable amounts
of time, because Amazon Linux uses python 3.7 which is not compatible
with anything in EPEL.
If you prefer RPM based deployments, I'd welcome additional testing,
and hope that our friends working with Ansible as a commercial
product, with Ansible Tower or AW, with Fedora or EPEL take note.
They're quite welcome to these for any useful techniques. Gtting all
the licenses and the READM's into the RPMs took some a bit of cunning
to avoid the RM packaging de-duplication, for example.
Nico Kadel-Garcia