1
0
Fork 0
formula-sudoers/sudoers/templates/sudoers.jinja

8 lines
228 B
Django/Jinja

{%- if config.command is string -%}
{{ for_user }} {{ config.privileges }}: {{ config.command }}
{%- else -%}
{% for command in config.command -%}
{{ for_user }} {{ config.privileges }}: {{ command }}
{% endfor %}
{%- endif -%}