Foreman 2.5.2 + Katello 4.1.2

You may want to wait with the foreman-tasks update until dynflow 1.4.9 is there.

See Ansible Remote Execution instantly fails

Or it’s actually in the repository now, so make sure you also update to dynflow 1.4.9.