Optimized sudoers for security

This commit is contained in:
Kevin Veen-Birkenbach 2021-01-01 13:28:17 +01:00
parent cc9a90e590
commit c45fa6ce94
2 changed files with 4 additions and 11 deletions

View File

@ -2,16 +2,9 @@
pacman: name=sudo state=present
- name: create sudoers
template: src=sudoers dest=/etc/sudoers
- name: insure group "sudo" exists
group:
name: sudo
state: present
- name: set /etc/sudoers
file:
path: /etc/sudoers
copy:
src: sudoers
dest: /etc/sudoers
mode: "0440"
owner: root
group: root
mode: 0440