@ekohl looks like it’s the same problem from this topic Foreman upgrade from 3.8 to 3.9 failed - #6 by Odilhao , epel update jinja2, the ansible-installer enables epel.
I’m going to ask pulp folks to do the same cherrypicks for 3.22 Cherry-pick dependency bounds by mdellweg · Pull Request #4966 · pulp/pulpcore · GitHub