{"repo":"ryandaniels/ansible-role-create-users","free":true,"listed":false,"github":"https://github.com/ryandaniels/ansible-role-create-users","clone":"git clone https://github.com/ryandaniels/ansible-role-create-users.git","description":"Manage users on Linux using Ansible","language":null,"stars":112,"topics":["ansible","ansible-role"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"ansible-role-create-users Role to manage users on linux. Manage users in the user list config file (list is in the file vars/secret). Add users (with specific uid), change passwords, lock/unlock user accounts, manage sudo access (per user), add ssh key(s) for sshkey based authentication, set user's primary group and gid, add user (append) to group(s) and group will be created if doesn't exist. This is done on a per \"group\" basis (Ansible group variables), as set in the config file. The group comes from the Ansible group as set for a server in the inventory file. all is also supported to apply to every host in an inventory file. Special variable inventory hostname is also supported to apply to just one server in an inventory file. More detailed example can be found in the blog post: User Management with Ansible Note: Deleting users is not done on purpose. Distros tested Ubuntu 24.04, 22.04, 20.04, 18.04, 16.04 CentOS / RHEL: 9.1, 8.x, 7.x, 6.5, 5.9 Dependencies Requires Ansible 2.9. Test on Ansible 2.16 (versions of this Ansible Role =v2 ). If Ansible 2.9 is required, the branch ansible29 still works (versions of this Ansible Role <v2 ). ansible-vault Use ansible-vault to encrypt sensitive info from git. .gitignore How to generate password on Ubuntu - Install \"whois\" package on RedHat - Use Python Default Settings User Settings File Location: vars/secret username : username - no spaces (required) uid : The numerical value of the user's ID (optional) user state : present lock (","default_branch":null,"files":null,"tree":[],"storefront":"/r/ryandaniels","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ryandaniels/ansible-role-create-users/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}