ansible-roles/library/roles/user_services_perms/templates/service-sudoers.j2

4 lines
366 B
Django/Jinja

{% if service_sudo_commands is defined %}
%{{ service_sudoers_group }} ALL=(ALL) NOPASSWD: {% for cmd in service_sudo_commands %}{{ cmd }}{% if not loop.last %}, {% endif %}{% endfor %} {% if service_sudo_commands_adjunct is defined %}, {% for cmd in service_sudo_commands_adjunct %}{{ cmd }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}
{% endif %}