Phillip_Wu
(Phillip Wu)
1
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?
sivel
(sivel)
2
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.
Phillip_Wu
(Phillip Wu)
3
Thanks
That’s a pity.
The prompt is different on each host that I’ll be adding (later)