Hi,
I just want to quickly check a finding with the community, something which should be so trivial it must be me :)
I have found that it is not possible to remove Cisco users from IOS 12.x using the Ansible module ios_user:
This is becuase IOS 12.x doesnt support "show running-config | section username" which the module tries to run.
Ok, thats fair enough. So I'll have to write the logic using ios_config: module instead..
But ios_config: still does not seem to support 'prompt:' and 'answer:' :(
Catch 22! As IOS prompts user removal with;
"This operation will remove all username related configurations with same name.Do you want to continue? [confirm]"
Thankfully, and only by dump luck, IOS 12 does not give this prompt, so ios_config: does work.. in this one case.. Phew..
But this to me seems like another exmaple of how much we need ios_config: to support 'prompt:' and 'answer:' as Cisco IOS plays so poorly with Ansible compared to other vendors becuase of the Cisco CLI.
Thanks for your thoughts.
Kind regards, Andy Lemin