I want to use an Ansible script to create/update a user's password.
I'm trying 'junos_config' and 'junos_command' modules to issue 'set' commands.
The 'encrypted-password' option needs a hash which I'm using python to create, but that's not working.
I've read this page, https://kb.juniper.net/InfoCenter/index?page=content&id=KB31903
I've tried MD5 with a leading "$1$" and SHA256 with a leading "$5$".
I think I'm missing a salt, but I'm not sure.
How can I generate the hash manually to use with Ansible?
I switch the python library I was using and it is working now.