54 lines
1.3 KiB
Django/Jinja
54 lines
1.3 KiB
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
# This file MUST be edited with the 'visudo' command as root.
|
|
#
|
|
# Please consider adding local content in /etc/sudoers.d/ instead of
|
|
# directly modifying this file.
|
|
#
|
|
# See the man page for details on how to write a sudoers file.
|
|
#
|
|
{% for item in sudoers_defaults %}
|
|
{% if item != '' %}
|
|
Defaults {{ item }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
# Host alias specification
|
|
{% for item in sudoers_host_aliases | default([]) %}
|
|
Host_Alias {{ item.name }} = {{ item.entry }}
|
|
{% endfor %}
|
|
|
|
# User alias specification
|
|
{% for item in sudoers_user_aliases | default([]) %}
|
|
User_Alias {{ item.name }} = {{ item.entry }}
|
|
{% endfor %}
|
|
|
|
# Cmnd alias specification
|
|
{% for item in sudoers_cmnd_aliases | default([]) %}
|
|
Cmnd_Alias {{ item.name }} = {{ item.entry }}
|
|
{% endfor %}
|
|
|
|
# Runas alias specification
|
|
{% for item in sudoers_runas_aliases | default([]) %}
|
|
Runas_Alias {{ item.name }} = {{ item.entry }}
|
|
{% endfor %}
|
|
|
|
# User privilege specification
|
|
{% for item in sudoers_user_privileges | default([]) %}
|
|
{{ item.name }} {{ item.entry }}
|
|
{% endfor %}
|
|
|
|
# Allow members of group sudo to execute any command
|
|
%sudo ALL=(ALL:ALL) ALL
|
|
|
|
# Group privilege specification
|
|
|
|
{% for item in sudoers_group_privileges | default([]) %}
|
|
{{ item.name }} {{ item.entry }}
|
|
{% endfor %}
|
|
|
|
# See sudoers(5) for more information on "#include" directives:
|
|
|
|
#includedir /etc/sudoers.d
|
|
|