Use the correct username for sudo
This commit is contained in:
parent
43d37226a8
commit
15454bdfbe
@ -24,7 +24,7 @@
|
|||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/sudoers
|
dest: /etc/sudoers
|
||||||
regexp: '^ansible'
|
regexp: '^ansible'
|
||||||
line: 'johndoe ALL=(ALL) NOPASSWD: ALL'
|
line: 'ansible ALL=(ALL) NOPASSWD: ALL'
|
||||||
state: present
|
state: present
|
||||||
validate: 'visudo -cf %s'
|
validate: 'visudo -cf %s'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user