Closed eleksis closed 3 months ago
@eleksis can you share the playbook that you used
- hosts: l2_switch:&ios
tasks:
- name: Set account
ios_user:
state: present
purge: yes
update_password: on_create
aggregate:
- name: user
privilege: 15
hashed_password:
value: ***
type: 8
sshkey: ***
SUMMARY
Setting user with type 8 hashed secret is not working anymore (In version 6.1.0), worked in 4.6.1
ISSUE TYPE
COMPONENT NAME
ios_user.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Update existing user's secret: {name: "user", privilege: 15, sshkey: , hashed_password: {value: , type: 8}}
On device user is already configured with type8 hashed secret. Module tries to configure it as password.
You made some changes in the last PR for this module (https://github.com/ansible-collections/cisco.ios/pull/970/files#diff-f691c744908ac8f55f153b2cdb1da1d5a862a5fefe199a6efc9460a1df7ca786R382). But don't understand why checking only for type 9? You obviously did not check syntax for other hash algorithms..