No description
Find a file
2022-02-06 19:16:40 +01:00
defaults first commit 2020-04-29 20:36:04 +02:00
meta Add 'meta/main.yaml' 2020-04-30 21:45:20 +02:00
tasks fix2 ssh_keys 2022-02-06 19:16:40 +01:00
templates/users first commit 2020-04-29 20:36:04 +02:00
vars first commit 2020-04-29 20:36:04 +02:00
README.md first commit 2020-04-29 20:36:04 +02:00

Role Name

Ce r<>le cr<63>e des utilisateurs.

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.

Role Variables

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yaml, vars/main.yaml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

Dependencies

A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.

Example Playbook

Cration d'utilisateurs

users:
  toto:
    home: /space/home/toto_home
    uid: 1050
    gid: 1100
    group: totogroup
    password: '$6$<E2><80><A6>'
    authorized_keys:
      - 'ssh-ed25519 <E2><80><A6>'
      - 'ssh-rsa <E2><80><A6>'
    bashrc:
      - '# extra line to add to bashrc'
  titi: {}

Le group totogroup est cr avec le gid 1100 puis le user toto est cr avec le uid, le home et le password renseign. Le fichier ~toto/.ssh/authorized_keys est cr avec les cl renseign, idem pour le bashrc.

Le user titi est cr avec son group correspondant. Le uid et le gid sont choisi automatiquement par le systme. Si le user titi existe dj, ni son uid, ni son group ne sont modifier.

Le home du user titi est set /space/home/titi, mme si le user existe dj. Son password est set * (password dsactiv), mme si le user existe dj .

N'oubliez pas d'autoriser le users dans le sshd_config via la configuration du role sshd (charg par dfaut par le role base).

License

BSD

Author Information

An optional section for the role authors to include contact information, or a website (HTML is not allowed).