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 pacman: name=sudo state=present
- name: create sudoers - name: create sudoers
template: src=sudoers dest=/etc/sudoers copy:
src: sudoers
- name: insure group "sudo" exists dest: /etc/sudoers
group: mode: "0440"
name: sudo
state: present
- name: set /etc/sudoers
file:
path: /etc/sudoers
owner: root owner: root
group: root group: root
mode: 0440