This commit is contained in:
Oleg Vasilev
2022-02-28 22:43:30 +03:00
parent 3ed66111cf
commit 22d968e1a6
2 changed files with 54 additions and 0 deletions

11
templates/sudoers.j2 Normal file
View File

@@ -0,0 +1,11 @@
# {{ ansible_managed }}
root ALL=(ALL) ALL
%sudo ALL=(ALL) NOPASSWD: ALL
{% for user in managed_users %}
{% if user.sudoer %}
{{ user.name }} ALL=(ALL) NOPASSWD: ALL
{% endif %}
{% endfor %}