dealing with prompt scenario in privilege mode

17 views
Skip to first unread message

SR

unread,
Jul 19, 2019, 1:05:57 AM7/19/19
to Ansible Project
Any pointers on how to deal with scenarios where system prompt for user input in ios_config module ? . I am trying to execute the command "crypto key zeroize" , which results a yes/no prompt . Saw a reference here https://github.com/ansible/ansible/issues/35494, reading " as a work around you should be able to use ios_command with prompt " , but I couldn't run the privilege commands using ios_command module . I am Running ansible version 2.7.10.

Thanks,
SR

Ganesh Nalawade

unread,
Jul 19, 2019, 4:13:37 AM7/19/19
to ansible...@googlegroups.com


You can use the cli_command module to handle prompts 


--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/54d1f69d-b224-4afe-9877-b98a49eb8ed4%40googlegroups.com.




SR

unread,
Jul 19, 2019, 7:52:02 AM7/19/19
to Ansible Project
Thanks Ganesh! , That helped.

On Friday, July 19, 2019 at 1:43:37 PM UTC+5:30, Ganesh Nalawade wrote:


You can use the cli_command module to handle prompts 

On Fri, Jul 19, 2019 at 10:36 AM SR <nbhoo...@gmail.com> wrote:
Any pointers on how to deal with scenarios where system prompt for user input in ios_config module ? . I am trying to execute the command "crypto key zeroize" , which results a yes/no prompt . Saw a reference here https://github.com/ansible/ansible/issues/35494, reading " as a work around you should be able to use ios_command with prompt " , but I couldn't run the privilege commands using ios_command module . I am Running ansible version 2.7.10.

Thanks,
SR

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages