Ansible Expect Prompt set to a variable in Host not working

Hi,
I’m trying to set Ansible Expect prompt to a variable in host file.

However this does not work.

You can see that Ansible is not sending a response to the prompt.
The prompt is defined as the contents of a variable declared in host file.

Can someone see what is wrong?

Generally speaking, you cannot set keys anywhere in ansible to a template, this is simply just not allowed.

As such, there really isn’t a mechanism for doing this. Keys must be hardcoded.

Thanks

That’s a pity.

The prompt is different on each host that I’ll be adding (later)