become_user with prompt

19 views
Skip to first unread message

Alejandro Larzabal

unread,
Mar 11, 2021, 12:16:57 PM3/11/21
to Ansible Project
Hello,

How can I respond to a user prompt that happens upon authentication?

Like 'expect' enables us to respond to command prompts, but the prompt in question happens when the user logs in, not after a command.

Does ansible support that?

Thanks,

Alex.

Brian Coca

unread,
Mar 12, 2021, 2:47:52 PM3/12/21
to Ansible Project
The become plugins handle a single prompt, the problem with multiple
is that they would have to know a priori how many and how to keep
track of 'success' conditions.

--
----------
Brian Coca

Reply all
Reply to author
Forward
0 new messages