Create user for ansible

Hi all,

I am playing around with ansible. I try to make a playbook that updates all my hosts, some using apt, other yum, etc.
So, for nethserver, I need to create a user for ansible to login.
But how must I do that? I do not think it should be created as a reguler (human) user via the webgui? (or does it?)
But on doing it via CLI ’ adduser’ (it gets created), I cannot set a password for user ansible. Invoking passwd -u ansible as root starts a dialog with LDAP, I don’t know what to fill in there…

Please advice?

The option -u unlocks the user.

passwd ansible

should work to set the password.

thanks. Assumption is the mother of all fckps.
man passwd.
sorry…

2 Likes