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
For fetching existing users the module runs "show user-account", this command displays users which does not exist, only have been logged in through SSH:
user:sshuserroles:network-admin vdc-adminaccount created through REMOTE authenticationCredentials such as ssh server key will be cached temporarily only for this user accountLocal login not possible
This makes the module try to delete these which are breaking idempotency as they are not present anywhere in the configuration.
The module also deletes users which is defined for snmp, which is more understandable, but still unfortunate.
The text was updated successfully, but these errors were encountered:
After going through your issue, I see you mentioned that logged-in users are being deleted. If these users are local, shouldn't they have an entry in the local user database, meaning the purge function is working as expected? Could you please explain what behavior you expect from the purge process?
and also can you share the playbook as well that you were using.
Sorry for the misunderstanding, the logged in users i mention is tacacs-users and not locally created ones.
This happens because "show user-account" also displays ssh connected accounts which is authenticated with tacacs.
this is my play:
- name: remove all users except admincisco.nxos.nxos_user:
purge: true
Ideally this would delete all locally configured users which are not admin.
What it does is that it tries to delete:
locally configured users
users that are logged in and not defined locally
users which are defined for other purposes for instance snmp
NilashishC
added
has_pr
This issue has an associated PR.
and removed
needs_info
This issue requires further information. Please answer any outstanding questions.
labels
Oct 16, 2024
For fetching existing users the module runs "show user-account", this command displays users which does not exist, only have been logged in through SSH:
This makes the module try to delete these which are breaking idempotency as they are not present anywhere in the configuration.
The module also deletes users which is defined for snmp, which is more understandable, but still unfortunate.
The text was updated successfully, but these errors were encountered: