Closed Akasurde closed 1 year ago
cc @vjs-tec
@Akasurde The command being used is a configuration command, I see the need for prompt we may supply the configuration terminal command from the command module itself.
- name: Configure class-map command
hosts: ios
gather_facts: no
connection: network_cli
tasks:
- name: Enter configuration mode
cisco.ios.ios_command:
commands:
- command: "configure terminal"
- command: "class-map type control subscriber match-all DOT1X_FAILED"
prompt: "Do you wish to continue?"
answer: "yes"
Regards
Hi,
I have similar issue , trying to apply below command and script but it fails please help.
ERROR:
TASK [Enter configuration mode] ***** fatal: [CSRR1]: FAILED! => {"changed": false, "msg": "class-map type control subscriber match-all DOT1X_FAILED\r\nclass-map type control subscriber match-all DOT1X_FAILED\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\nCSRR1#"}