add sudoers config for sysadmingroup
This commit is contained in:
parent
f27ca2277a
commit
b20e85fe14
|
@ -205,6 +205,22 @@
|
||||||
notify: restart nslcd
|
notify: restart nslcd
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
# configure sudo for sysadmin group
|
||||||
|
# add sysadmin group to sudoers
|
||||||
|
- name: Add sysadmin group to sudoers
|
||||||
|
file:
|
||||||
|
path: /etc/sudoers.d/vn
|
||||||
|
state: touch
|
||||||
|
mode: u=rw,g=r,o=r
|
||||||
|
|
||||||
|
# add a line to /etc/sudoers.d/vn file
|
||||||
|
- name: add a line to /etc/sudoers.d/vn file
|
||||||
|
lineinfile:
|
||||||
|
path: "/etc/sudoers.d/vn"
|
||||||
|
line: "%sysadmin ALL=(ALL) NOPASSWD: ALL"
|
||||||
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
# Proteger grub
|
# Proteger grub
|
||||||
- name: GRUB se password boot protection
|
- name: GRUB se password boot protection
|
||||||
|
|
Loading…
Reference in New Issue