templier-ansible/roles/sudo/templates/sudoers.j2

28 lines
653 B
Plaintext
Raw Normal View History

{{ 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
2021-01-29 00:08:39 +00:00
# User alias specification
2021-01-29 00:08:39 +00:00
# Cmnd alias specification
2021-01-29 00:08:39 +00:00
# User privilege specification
root ALL=(ALL:ALL) ALL
2021-01-29 00:08:39 +00:00
{% if 'virtu' in group_names %}
# Pour vérifier quels vms sont sur quels virtus
USERS ALL=(root:ALL) NOPASSWD:/usr/sbin/qm list
2021-01-29 00:08:39 +00:00
{% endif %}
# See sudoers(5) for more information on "#include" directives:
2021-01-29 00:08:39 +00:00
#includedir /etc/sudoers.d