xoxys.sudo/templates/etc/sudoers.d/sudo_ext.j2

20 lines
491 B
Plaintext
Raw Normal View History

2019-11-03 21:40:04 +00:00
#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
{% if item.user_aliases is defined %}
{% for user in item.user_aliases %}
User_Alias {{ user.name | upper }} = {{ user.value | join(', ') }}
{% endfor %}
{% endif %}
{% if item.cmnd_aliases is defined %}
{% for cmnd in item.cmnd_aliases %}
Cmnd_Alias {{ cmnd.name | upper }} = {{ cmnd.value | join(', ') }}
{% endfor %}
{% endif %}
{% if item.specs is defined %}
{% for spec in item.specs %}
{{ spec }}
{% endfor %}
{% endif %}