play_hosts seems to behave differently in vars_prompt than in a normal task. This was surprising behaviour for me, so I made an ansible bug: https://github.com/ansible/ansible/issues/84515.
play_hosts seems to behave differently in vars_prompt than in a normal task. This was surprising behaviour for me, so I made an ansible bug: https:/ /github. com/ansible/ ansible/ issues/ 84515.