ansible-role-users/templates/sudoers

6 lines
161 B
Plaintext

{% if user.sudoers is defined %}
{{ user.sudoers }}
{% else %}
{{ user.username }} ALL=(ALL) {% if user.sudo == 'nopasswd' %}NOPASSWD:{% endif %}ALL
{% endif %}