Commit d461b8c9 authored by Mattia Rizzolo's avatar Mattia Rizzolo

use a bit of yaml magic to de-duplicate the users' extra_groups

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 7d50e1d1
--- ---
_admin_groups: &_admin_groups
- allow-ssh
- passwordless-sudo
handled_users: handled_users:
- name: manager - name: manager
gecos: Management user gecos: Management user
# the keys of this user are handled automatically by the 'admin_users' host var # the keys of this user are handled automatically by the 'admin_users' host var
keys: [] keys: []
home: /home/manager home: /home/manager
extra_groups: extra_groups: *_admin_groups
- allow-ssh
- passwordless-sudo
- name: mattia - name: mattia
gecos: Mattia Rizzolo gecos: Mattia Rizzolo
...@@ -17,9 +19,7 @@ handled_users: ...@@ -17,9 +19,7 @@ handled_users:
comment: mattia@4B043FCDB9444540 comment: mattia@4B043FCDB9444540
state: present state: present
shell: /bin/zsh shell: /bin/zsh
extra_groups: extra_groups: *_admin_groups
- allow-ssh
- passwordless-sudo
- name: pietro - name: pietro
gecos: Pietro Albini gecos: Pietro Albini
...@@ -30,9 +30,7 @@ handled_users: ...@@ -30,9 +30,7 @@ handled_users:
- key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdVVy/lfTMwDVTDXFJmF/BzI7Rjw3Fu4WkVnkdJnAHcBEZk/hOAoBq26mNzcX3VbLlpSd48UrtR8gEKqmeHwBeMkODgui+XC3TszRxbTVzr0f4bcnSj/XNfptXzbXfyf2h/PxrCrgE5E2JD3O4BAcGr3QGeF6fP7Q9J9pbLIHZVvoiX4/Ll7NLJtQrKa5ssBD4kpYt3HS6Ab25lWvE0PLu4J3VpM29DBmVxp3cBnbENlr9hh2XDhgyKwjkboKiQkK1s1/pfFDOhI4UYVu2g3Jzwxk+KxGgsLxenADtdENZRsinfDFzxrhHmpLhrV+e3pTpvwnEO3AaS/WWdxSgBBYf - key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCdVVy/lfTMwDVTDXFJmF/BzI7Rjw3Fu4WkVnkdJnAHcBEZk/hOAoBq26mNzcX3VbLlpSd48UrtR8gEKqmeHwBeMkODgui+XC3TszRxbTVzr0f4bcnSj/XNfptXzbXfyf2h/PxrCrgE5E2JD3O4BAcGr3QGeF6fP7Q9J9pbLIHZVvoiX4/Ll7NLJtQrKa5ssBD4kpYt3HS6Ab25lWvE0PLu4J3VpM29DBmVxp3cBnbENlr9hh2XDhgyKwjkboKiQkK1s1/pfFDOhI4UYVu2g3Jzwxk+KxGgsLxenADtdENZRsinfDFzxrhHmpLhrV+e3pTpvwnEO3AaS/WWdxSgBBYf
comment: backup-pietro comment: backup-pietro
state: present state: present
extra_groups: extra_groups: *_admin_groups
- allow-ssh
- passwordless-sudo
- name: janvitus - name: janvitus
gecos: Gianvito Cavasoli gecos: Gianvito Cavasoli
...@@ -40,9 +38,7 @@ handled_users: ...@@ -40,9 +38,7 @@ handled_users:
- key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUzuSDyKJeIbGTGk6CeoxBZGGSJMr03O7TScBjzD45E98ejxknQoFqsGeoi6rSo8YuvSHRVO3rhCwpcnIjIkZM0BEAwPilUrxiuIXBMkuu5Rv/0CB8PsVP9kg9XtmJr2PaA0iQKg4ije0CEG5j/pom9QZsaWggCIp+SAoIFys7G1bSRmPLHghBWxpoKtd1pjhbwZJ+e/kAPIWaDZcILvTVqdUn8WpzbA0mqXWdSwXmf2fggx+u0Qj1PEJWJnmQgf3TAlnBfUHcYsjdFp2jnEzM+kFhXqXB17FijZn3Uz5R2VFsLUsX10BxV6frKOi536/KvXlbwhoEwIBtg2aHX7/F - key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUzuSDyKJeIbGTGk6CeoxBZGGSJMr03O7TScBjzD45E98ejxknQoFqsGeoi6rSo8YuvSHRVO3rhCwpcnIjIkZM0BEAwPilUrxiuIXBMkuu5Rv/0CB8PsVP9kg9XtmJr2PaA0iQKg4ije0CEG5j/pom9QZsaWggCIp+SAoIFys7G1bSRmPLHghBWxpoKtd1pjhbwZJ+e/kAPIWaDZcILvTVqdUn8WpzbA0mqXWdSwXmf2fggx+u0Qj1PEJWJnmQgf3TAlnBfUHcYsjdFp2jnEzM+kFhXqXB17FijZn3Uz5R2VFsLUsX10BxV6frKOi536/KvXlbwhoEwIBtg2aHX7/F
comment: gianvito@ubuntubox comment: gianvito@ubuntubox
state: present state: present
extra_groups: extra_groups: *_admin_groups
- allow-ssh
- passwordless-sudo
handled_groups: handled_groups:
- name: allow-ssh - name: allow-ssh
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment