Name: ansible-users
Owner: EMBL-EBI Technology & Science Integration
Description: Ansible user creation role
Created: 2015-10-13 10:29:39.0
Updated: 2016-11-09 20:21:28.0
Pushed: 2016-10-07 13:51:51.0
Homepage: null
Size: 22
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Role to manage users on a system.
Add a users variable containing the list of users to add. A good place to put
this is in group_vars/all
or group_vars/groupname
if you only want the
users to be on certain machines.
The following attributes are required for each user:
In addition, the following items are optional for each user:
Example:
---
users:
- username: foo
name: Foo Barrington
groups: ['wheel','systemd-journal']
uid: 1001
ssh_key:
- "ssh-rsa AAAAA.... foo@machine"
- "ssh-rsa AAAAB.... foo2@machine"
users_deleted:
- username: bar
name: Bar User
uid: 1002
The users_deleted
variable contains a list of users who should no longer be
in the system, and these will be removed on the next ansible run. The format
is the same as for users to add, but the only required field is username
.
However, it is recommended that you also keep the uid
field for reference so
that numeric user ids are not accidentally reused.