How to deal with what needs to be judged in the script when executing the script using ansible playbook

there are some system or software installation scripts in stock. In the process of execution, prompt, often needs to manually confirm yes or no before continuing to execute, ansible playbook. How to deal with these scripts? do you have to modify the script to delete prompt confirmation?

Mar.13,2021

choosing yes/no in automated scripts is simply anti-human design. The purpose of the script is not to interrupt the user, and the user should not be allowed to confirm it halfway.

you first check to see if your script has non-interactive parameters, and if not, you must rewrite it.

Menu