ansible-roles/evolinux-users
Mathieu Trossevin 7c632352a0
Replace the include module with include_tasks or import_tasks
The behaviour of the `include` module is badly defined (it try to choose
between statically importing the tasks and dynamically including them)
and can cause problems depending on any number of constraints (mostly if
it choose the wrong behaviour).

Replace it with the `import_tasks` (always statically import tasks) unless
the `include` is in a loop in which case we replace it with
`include_tasks` (always dynamically include tasks).
2023-01-03 14:43:42 +01:00
..
defaults Simplify user subset creation 2022-08-24 09:05:29 -04:00
handlers evolinux-users: add newaliases handler 2018-11-14 17:04:51 +01:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks Replace the include module with include_tasks or import_tasks 2023-01-03 14:43:42 +01:00
templates evolinux-user: sudoers privileges for check php\fpm80 and 81 2022-10-07 14:16:32 +02:00
tests Refactoring of admin-users + evolinux-base roles 2017-10-06 01:06:59 +02:00
.kitchen.yml Refactoring of admin-users + evolinux-base roles 2017-10-06 01:06:59 +02:00
README.md Update 'evolinux-users/README.md' 2022-08-24 15:24:54 +02:00

evolinux-users

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

Tasks

Everything is in the tasks/main.yml file.

Available variables

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

evolinux_users:
  foo:
    name: foo
    uid: 1001
    fullname: 'Mr Foo'
    groups: "baz"
    password_hash: 'sdfgsdfgsdfgsdfg'
    ssh_key: 'ssh-rsa AZERTYXYZ'
    create: always
  bar:
    name: bar
    uid: 1002
    fullname: 'Mr Bar'
    groups:
    - "baz"
    - "qux"
    password_hash: 'gsdfgsdfgsdfgsdf'
    ssh_keys:
      - 'ssh-rsa QWERTYUIOP'
      - 'ssh-ed25519 QWERTYUIOP'
    create: on_demand
  • evolinux_sudo_group: which group to use for sudo (default: evolinux-sudo)
  • evolinux_ssh_group: which group to use for ssh (default: evolinux-ssh)
  • evolinux_internal_group: which group to use for all created users (eg. the company name)
  • evolinux_root_disable_ssh: disable root's ssh access (default: True)