2019-11-03 21:40:04 +00:00
|
|
|
#jinja2: lstrip_blocks: True
|
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
{% if sudo_misc_settings %}
|
|
|
|
{% for item in sudo_misc_settings %}
|
|
|
|
Defaults {{ item }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% if sudo_env_keep -%}
|
2022-09-19 15:05:20 +00:00
|
|
|
Defaults env_keep="{{ sudo_env_keep|join(' ') }}"
|
2019-11-03 21:40:04 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if sudo_secure_path -%}
|
2022-09-19 15:05:20 +00:00
|
|
|
Defaults secure_path="{{ sudo_secure_path }}"
|
2019-11-03 21:40:04 +00:00
|
|
|
{% endif %}
|
2022-09-19 15:05:20 +00:00
|
|
|
Defaults logfile={{ sudo_logfile }}
|
2019-11-03 21:40:04 +00:00
|
|
|
|
|
|
|
## Allow root to run any commands anywhere
|
|
|
|
root ALL=(ALL) ALL
|
|
|
|
|
|
|
|
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
|
|
|
|
#includedir /etc/sudoers.d
|