You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also noticed this. Because of the logic, a user without ssh key will not get purged. Module assumes that all the users that are purged have ssh key. This need to be replaced so that it also does the no -command to the username in the main config level, no only under "ip ssh pubkey-chain"
SUMMARY
When using cisco.ios.ios_users module to purge users, the commands seem to be adding 'ip ssh pubkey-chain'
ISSUE TYPE
COMPONENT NAME
cisco.ios.ios_user
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Cisco IOSv Version 15.9(3)M3
STEPS TO REPRODUCE
Configure a test user on a Cisco IOS devices e.g.
username test privilege 15 secret
Run example playbook and print command results
EXPECTED RESULTS
Command output should only issue command 'no username test'
ACTUAL RESULTS
Command output shows extra command 'ip ssh pubkey-chain'
The text was updated successfully, but these errors were encountered: