# Prompt in Lookup Module

**URL:** <https://forum.ansible.com/t/prompt-in-lookup-module/23662>\
**Category:** Ansible Project\
**Created:** [February 7, 2017, 1:11pm UTC](https://forum.ansible.com/t/prompt-in-lookup-module/23662 "2017-02-07T13:11:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas.baer](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@nicolas.baer](https://forum.ansible.com/u/nicolas.baer)\
**Post date:** [February 7, 2017, 1:11pm UTC](https://forum.ansible.com/t/prompt-in-lookup-module/23662/1 "2017-02-07T13:11:13Z")

</div>

Hi There

We are writing an integration to our third party password manager using a lookup plugin. We would like to prompt the user for credentials in case we can not access a certain token. Is this feasible within the LookupModule? We use the display class to log debug messages and found a prompt method there, but it doesn’t seem to work: `EOF when reading a line`. It shows the defined prompt message, but does not wait for user input. Here’s a quick example:

from ansible.plugins.lookup import LookupBase  
from ansible.utils.display import Display

class LookupModule(LookupBase):

def run(self, terms, variables=None, \*\*kwargs):

Display.prompt(“test prompt”, private=False)  
return

Any ideas?

Best regards  
Nicolas
