ansible-roles/dnet_user_services_perms/templates/dnet-sudoers.j2

4 lines
292 B
Django/Jinja

%{{ dnet_sudoers_group }} ALL=(ALL) NOPASSWD: {% if tomcat_m_instances is defined %}/etc/init.d/tomcat7, /etc/init.d/tomcat-instance-*{% endif %} {% if dnet_sudo_commands is defined %},{% for cmd in dnet_sudo_commands %}{{ cmd }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}