user module on IBM AIX

16 views
Skip to first unread message

Bruno Cochofel

unread,
Apr 12, 2019, 4:56:07 AM4/12/19
to Ansible Project
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

Brian Coca

unread,
Apr 18, 2019, 12:18:56 PM4/18/19
to Ansible Project
if the hash is the problem, probably a conditional assignment

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


--
----------
Brian Coca

klaas...@gmail.com

unread,
Apr 18, 2019, 1:54:36 PM4/18/19
to ansible...@googlegroups.com
You can also use the linux hashes on AIX.
https://www-01.ibm.com/support/docview.wss?uid=isg3T1027597
Reply all
Reply to author
Forward
0 new messages