Prompt in Lookup Module

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