Ok, I find the problem and a workaround. Change at settings:
foreman_tasks_proxy_batch_size => from 100 to 1
Disable foreman_tasks_proxy_batch_trigger its not solution for me because generate authentication errores from Ansible with remote hosts (Error initializing command: Net::SSH::AuthenticationFailed - Authentication failed for user. Bug?).
Explanation:
At 1.21 ansible job templates was invocated from ansible-playbook. One command (invocation) by one host.
At 1.24 ansible is invocate from ansible-runner. One command (invocation) for all hosts. The play constructed for that invocation (/tmp/xxxxxx/project/playbook.yml) is rendered with the erb vars from the first host in the execution list.
So YOU HAVE A PROBLEM if you want to use ERB parameters as host.shortname.
Putting foreman_tasks_proxy_batch_size to 1 resolve the problems and emulate the same manner like foreman-playbook, one host one invocation. you the same work