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

3 lines
148 B
Django/Jinja

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