How to answer to prompt in configuration mode Cisco switch

Hi all,

I want to configure Radius do1x in 2960 cisco switch with ansible. As soon as I run command aaa accounting identity default start-stop group, a prompt pops up saying: This operation will permanently convert all relevant authentication commands to their CPL control-policy equivalents. As this conversion is irreversible and will disable the conversion CLI ‘authentication display [legacy|new-style]’, you are strongly advised to back up your current configuration before proceeding.
Do you wish to continue? [yes]:
I was wondering if there are any modules in ios_config to answer the prompt similar to the ios-command.

Thank You,

Mana

Try this

cli_command:
command: “aaa accounting identity default start-stop group”
prompt:

  • “Do\ you\ wish\ to\ continue\?\ \[yes\]:”
    answer:
  • ‘yes\r’

Thank you! I tried the prompt with ios_config but it’s not working. It’s a Cisco switch it doesn’t accept cli_command