Put service user into own sudo file
SUSE Tumbleweed doesn't have a /etc/sudoers anymore - and it's the clean way to do it
This commit is contained in:
parent
e286662efc
commit
c6cb78ce6f
|
@ -220,9 +220,10 @@
|
||||||
|
|
||||||
- name: Add sudo line for service
|
- name: Add sudo line for service
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/sudoers
|
path: "/etc/sudoers.d/{{ service_username }}"
|
||||||
regexp: "^service"
|
regexp: "^service"
|
||||||
line: "{{ service_username }} ALL=(ALL:ALL) NOPASSWD: ALL"
|
line: "{{ service_username }} ALL=(ALL:ALL) NOPASSWD: ALL"
|
||||||
|
create: yes
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue