ansible-roles/admin-users
Jérémy Lecour 8920ff1ee4 Add "always_run: yes" where it's pertinent
There is also the "check_mode: no", but commented,
for when we switch to Ansible 2.2
2017-01-31 11:45:35 +01:00
..
defaults admin-users: default to empty dict 2017-01-10 10:19:43 +01:00
handlers add a "reload sshd" handler 2017-01-04 10:21:41 +01:00
meta Improve documentation 2017-01-05 18:22:06 +01:00
tasks Add "always_run: yes" where it's pertinent 2017-01-31 11:45:35 +01:00
templates Rename role evolinux-admin_users → admin-users 2016-12-22 15:34:23 +01:00
README.md admin-user: switch to a Dict for admin_users 2017-01-04 10:21:41 +01:00

admin-users

Creates admin users accounts, based on a configuration data structure.

Tasks

Everything is in the tasks/main.yml file.

Available variables

The variable admin_users must be a "dict" of one or more users :

admin_users:
  foo:
    name: foo
    uid: 1001
    fullname: 'Mr Foo'
    password_hash: 'sdfgsdfgsdfgsdfg'
    ssh_key: 'ssh-rsa AZERTYXYZ'
  bar:
    name: bar
    uid: 1002
    fullname: 'Mr Bar'
    password_hash: 'gsdfgsdfgsdfgsdf'
    ssh_key: 'ssh-rsa QWERTYUIOP'