user module on IBM AIX

Hi,

I’m trying to use the user module to create users on AIX, but I’m getting errors and I think the problem comes from the password hash that I’m using.
The role runs fine on Linux, but not on AIX.

What is the best way to have a role running on both Linux and AIX to create users with passwd?

Thanks,
Bruno

if the hash is the problem, probably a conditional assignment

password: {{ ansible_os_distribution == 'AIX'|ternary( 'aix hashed',
'linux hashed') }}

You can also use the linux hashes on AIX.
https://www-01.ibm.com/support/docview.wss?uid=isg3T1027597