16 lines
613 B
YAML
16 lines
613 B
YAML
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# configure sudo for sysadmin group
|
|
# paso1 - 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
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
# paso2 - 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"
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|