Prompt user for input in Custom Ansible Module

How to prompt user for input inside the custom module?

Remember that the modules run on the remote machines, so that’s probably not desirable.

You can use vars_prompt at the begining of a playbook to gather some variables which are passed to your custom module when it is run though.

Hope this helps,

Jon

I need user to fill in certain information on adhoc basis as i need to do some conditioning checking as well step by step.