dealing with prompt scenario in privilege mode

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 can use the cli_command module to handle promptsRefer: https://docs.ansible.com/ansible/latest/modules/cli_command_module.html

Thanks Ganesh! , That helped.