Skip to content

Commit 30e787f

Browse files
committed
Fix: Cannot do sudo -u otheruser command - which breaks Ansible execution with "become_user" other than root
1 parent 88b2f75 commit 30e787f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/sudo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
become: yes
99
lineinfile:
1010
dest: /etc/sudoers
11-
line: "%sudonopasswd ALL=(root) NOPASSWD: ALL"
11+
line: "%sudonopasswd ALL=(ALL) NOPASSWD: ALL"

0 commit comments

Comments
 (0)