Closed hanks closed 7 years ago
@sivel ping, this issue is waiting for your response. click here for bot help
This is not specific to the expect module. Using variables as keys is unsupported throughout ansible.
Maybe you could instead define a variable like:
vars:
path_responses:
"/foo/bar/baz": "yes"
And then supply that to responses like:
responses: "{{ path_responses }}"
If you have further questions please stop by IRC or the mailing list:
ISSUE TYPE
COMPONENT NAME
expect
ANSIBLE VERSION
OS / ENVIRONMENT
macOS 10.11.3
SUMMARY
can not use variable in responses key of expect module
EXPECTED RESULTS
It should check the prompt with the
path
value, and inputyes
ACTUAL RESULTS
No response for the prompt