Commit 01cd68db authored by Mattia Rizzolo's avatar Mattia Rizzolo

common/users: move the passwordless-sudo thing to the top, and add a validation check

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent a16f35e2
---
- name: allow passwordless-sudo to use sudo
template:
src: users/sudoers-passwordless-sudo
dest: /etc/sudoers.d/passwordless-sudo
mode: 0440
validate: visudo -cf %s
- name: create groups
group:
name: "{{ item.name }}"
......@@ -52,8 +59,3 @@
with_items: "{{ admin_users.keys() }}"
- name: allow passwordless-sudo to use sudo
template:
src: users/sudoers-passwordless-sudo
dest: /etc/sudoers.d/passwordless-sudo
mode: 0440
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment