Commit f9f94df1 authored by Tobias Stein's avatar Tobias Stein
Browse files

Prevent configuring sudo when logged in via root account

parent 27bf1982
......@@ -12,7 +12,9 @@
lstrip_blocks: true
backup: no
validate: /usr/sbin/visudo -cf %s
when: ansible_nopasswd
- ansible_nopasswd
- ansible_user_id != "root"
- ansible_nopasswd
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