# How to answer to prompt in configuration mode Cisco switch

**URL:** <https://forum.ansible.com/t/how-to-answer-to-prompt-in-configuration-mode-cisco-switch/35488>\
**Category:** Ansible Project\
**Created:** [July 11, 2021, 5:14am UTC](https://forum.ansible.com/t/how-to-answer-to-prompt-in-configuration-mode-cisco-switch/35488 "2021-07-11T05:14:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mana\_maghrebi](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mana\_maghrebi](https://forum.ansible.com/u/mana_maghrebi)\
**Post date:** [July 11, 2021, 5:14am UTC](https://forum.ansible.com/t/how-to-answer-to-prompt-in-configuration-mode-cisco-switch/35488/1 "2021-07-11T05:14:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [July 18, 2021, 2:18am UTC](https://forum.ansible.com/t/how-to-answer-to-prompt-in-configuration-mode-cisco-switch/35488/2 "2021-07-18T02:18:50Z")

</div>

Try this

cli\_command:  
command: “aaa accounting identity default start-stop group”  
prompt:

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

---

<div class="post-metadata">

**Author:** ![mana\_maghrebi](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@mana\_maghrebi](https://forum.ansible.com/u/mana_maghrebi)\
**Post date:** [July 21, 2021, 1:00am UTC](https://forum.ansible.com/t/how-to-answer-to-prompt-in-configuration-mode-cisco-switch/35488/3 "2021-07-21T01:00:21Z")

</div>

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
