Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
313 B

{% for user in ssh_users | default([]) %}
{% if user.sudo is defined %}
{% for command in user.sudo %}
{{ user.name }} ALL=({{ command.run_as | default('root') }}) {% if command.nopasswd is defined and command.nopasswd %} NOPASSWD: {% endif %} {{ command.cmd | join(',') }}
{% endfor %}
{% endif %}
{% endfor %}