How to manage users and groups using ansible?
-
Link: http://docs.ansible.com/ansible/user_module.html
One of many system modules available. The user module does as you would expect adds and remove users.
Add a user using the encrypted password
$ ansible all -m user -a "name=awsuser password=<crypted password here>"
Remove a user
$ ansible all -m user -a "name=awsuser state=absent"
© Lightnetics 2024