templier-ansible/roles/sudo/templates/sudoers.j2
Yohann D'ANELLO c0a466db6a
Configure sudoers
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-05-24 21:01:22 +02:00

28 lines
653 B
Django/Jinja

{{ ansible_header | comment }}
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
User_Alias USERS= %user
User_Alias ADMINS= %admin
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
{% if 'virtu' in group_names %}
# Pour vérifier quels vms sont sur quels virtus
USERS ALL=(root:ALL) NOPASSWD:/usr/sbin/qm list
{% endif %}
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d