Ansible doesnt allows multiple promots at the same time "y\ny\n"

Hi ,

ansible 2.1.4.0

I am trying to use ansible module to execute a sciprt < custom work flow> . I have notices that ansible allows me to enter only one prompt ‘y’ from the question generated out of the custom script.

I tried to use ‘command’ or ‘expect’ modules, but also didn’t work as it expect pexpect modules .

I moved my command from a module to a bash file and asked ansible to run the file but also same issue. < not allowing more than one promot at a time>

any Idea how to fix this issue? what module or expression i should be using?

here is my task :

Have a look for vars_prompt in the ansible documentation. This is probably the best way to make interactive scripts with ansible.

Jon

I tried adding var_prompts on instantiate playbook, but same result . couldn’t use it as default answer for any prompts …

  • hosts: “OAM”

vars_prompt:

  • default: “y”

what should i add to let Ansible push "Y’ to any prompt from thr script above?