EMBL-EBI-TSI/ansible-users

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

Users role

Role to manage users on a system.

Role configuration
Creating users

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
Deleting users

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.