Skip to content- defining expanding the vars to have multiple properties per item to add groups per user.
- using user state for a method to disable users accounts.
- Update the servers SSH config, and add a notify rule so sshd is restarted if required.
- Create a list of user names, using Ansible
vars
- Create a user account for each user name with the Ansible module
users
and with_items
. - Add each user’s ssh public key to the account with Ansible
authorized_key
- Modify
/etc/sudoers
so the users can use sudo
without entering a password