Bash script itself asking some questions. So how can we pass that answer via ansible?
Regards, Abhi On Tue, 7 Feb 2023, 00:12 Alex Wanderley, <[email protected]> wrote: > Hi, > > One possible way would be using "vars_prompt" to request the user's input > and then pass that variable on as a parameter to your script in a > "shell/command" task. > > Alex > > On Mon, Feb 6, 2023 at 11:36 AM Linux Study <[email protected]> wrote: > >> Hi All, >> >> Is there way to pass user inputs to bash script via ansible? >> >> >> Regards, >> Abhi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CAEcjLFzU8q%2BgQgGE9QJu6WkhVWsW_6EDNh2aQ%3DVaxq%2BO1cBybw%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAEcjLFzU8q%2BgQgGE9QJu6WkhVWsW_6EDNh2aQ%3DVaxq%2BO1cBybw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > > > > [image: Edmonton_sig_RGB_S.jpg] > > Alex Wanderley > > Application and Infrastructure Analyst II > Server Solutions & Automation > > Financial and Corporate Services | Open City and Technology > > > > 780-496-4156 Office > > 780-819-0273 Mobile > > > > City of Edmonton > > Century Place, 19th Floor > > 9803 102A Avenue NW > > Edmonton AB, T5J 3A3 > > > > All information contained in this email post is proprietary to the City of > Edmonton, confidential and intended only for the addressed recipient. If > you have received this post in error, please disregard the contents, inform > the sender of the misdirection, and remove it from your system. The > copying, dissemination or distribution of this email, if misdirected, is > strictly prohibited. > > *The contents of this message and any attachment(s) are confidential, > proprietary to the City of Edmonton, and are intended only for the > addressed recipient. If you have received this in error, please disregard > the contents, inform the sender of the misdirection, and remove it from > your system. The copying, dissemination, or distribution of this message, > if misdirected, is strictly prohibited.* > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CADp8UUQzn-zGRFH%2BTVqW-oSeaZEod4QPOJmDBxc0AvMk_McwLA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CADp8UUQzn-zGRFH%2BTVqW-oSeaZEod4QPOJmDBxc0AvMk_McwLA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEcjLFxNst9Ud7xu-xurOYkW9ufKfyrH8fqDfKpVZxPcFcs9Vw%40mail.gmail.com.
