You can use the cli_command module to handle prompts
Refer:
https://docs.ansible.com/ansible/latest/modules/cli_command_module.html


On Fri, Jul 19, 2019 at 10:36 AM SR <[email protected]> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/54d1f69d-b224-4afe-9877-b98a49eb8ed4%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/54d1f69d-b224-4afe-9877-b98a49eb8ed4%40googlegroups.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/CA%2B6y2sEpGSpV4c3kNg4WmGeB%3D-OyqCHy5en7wFsdODskD%2Biv5A%40mail.gmail.com.

Reply via email to