2021-03-17 22:33:31 +00:00
|
|
|
{{ ansible_header | comment }}
|
2021-05-24 19:01:22 +00:00
|
|
|
#
|
|
|
|
# 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"
|
2021-03-17 22:33:31 +00:00
|
|
|
|
2021-05-24 19:01:22 +00:00
|
|
|
# Host alias specification
|
|
|
|
User_Alias USERS= %user
|
|
|
|
User_Alias ADMINS= %admin
|
2021-01-29 00:08:39 +00:00
|
|
|
|
2021-05-24 19:01:22 +00:00
|
|
|
# User alias specification
|
2021-01-29 00:08:39 +00:00
|
|
|
|
2021-05-24 19:01:22 +00:00
|
|
|
# Cmnd alias specification
|
2021-01-29 00:08:39 +00:00
|
|
|
|
2021-05-24 19:01:22 +00:00
|
|
|
# User privilege specification
|
|
|
|
root ALL=(ALL:ALL) ALL
|
2021-01-29 00:08:39 +00:00
|
|
|
|
2021-05-24 19:01:22 +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
|
|
|
|
2021-05-24 19:01:22 +00:00
|
|
|
{% endif %}
|
2022-06-27 14:33:42 +00:00
|
|
|
# See sudoers(5) for more information on "@include" directives:
|
2021-01-29 00:08:39 +00:00
|
|
|
|
2022-06-27 14:33:42 +00:00
|
|
|
@includedir /etc/sudoers.d
|