thanks Richard! On Monday, April 9, 2018 at 6:04:51 PM UTC+8, richard wrote: > > On 09/04/18 21:57, Benny Kusman wrote: > > Hi > > > > Hopefully someone has encountered and resolved this issue. > > > > supposedly my playbook: > > *- main: execute script* > > * shell: "/home/settingip"* > > > > when executing the program, it will run and require stdin/keyboard > > input, such as IP, hostname, etc. > > > > can i pre-fill this in ansible ? knowing that the prompt will have the > > same question everytime the command runs > > Have a look at the expect module: > > https://docs.ansible.com/ansible/latest/modules/expect_module.html > > Richard >
-- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to email@example.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/76d16823-6f61-4955-8037-fbeb2392f4b8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.