All of the foreman documentation I can find references ansible 2.9 which has been EOL for a few months now as well as has had issues when I try to use playbooks with windows modules in them.
This requires that I manually install ansible using pip3, which tends to lead to headaches when upgrading foreman as foreman will tend to discretely install the yum package (which is based on the EOL python3.6).
I usually have to go through the following PITA process to upgrade foreman and avoid things breaking horribly.
Remove current ansible install and any pywinrm modules
I think one of the main issues is that there don’t seem to be any official RPM packages for Ansible 3+ (not any that I’m aware of, which annoys me as it makes life difficult )
However, there are currently no Ansible community RPMs available (and I am not aware of any plans from Ansible to do so), so you will have to add the missing collections via ansible-galaxy after the fact.
Sorry, I wasn’t aware of the support for Ansible Core 2.13.
I am working the the theforeman.operations ansible roles right now and
they explicitly install ansible 2.9 repos, which made me assume only 2.9 is supported.
That collection has a role for Ansible repos for the time when there was no Ansible in BaseOS for CentOS/RHEL, now you can just avoid that repo (and we probably should drop that role).