ansible-role-users/templates/sudoers

6 lines
161 B
Plaintext
Raw Permalink Normal View History

2022-01-23 02:20:50 +01:00
{% if user.sudoers is defined %}
{{ user.sudoers }}
{% else %}
{{ user.username }} ALL=(ALL) {% if user.sudo == 'nopasswd' %}NOPASSWD:{% endif %}ALL
{% endif %}