user-mgmnt/templates/sudoers.j2

10 lines
163 B
Plaintext
Raw Permalink Normal View History

2022-02-28 22:43:30 +03:00
# {{ ansible_managed }}
root ALL=(ALL) ALL
{% for user in managed_users %}
{% if user.sudoer %}
{{ user.name }} ALL=(ALL) NOPASSWD: ALL
{% endif %}
{% endfor %}