Feat: add sudo group and sudoers

This commit is contained in:
Bertrand Benjamin 2022-01-12 14:56:04 +01:00
parent 8e98717b54
commit e50ccd7ef0
2 changed files with 17 additions and 0 deletions

7
roles/core/files/sudoers Normal file
View File

@ -0,0 +1,7 @@
root ALL=(ALL) ALL
%sudo ALL=(ALL) ALL
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
#includedir /etc/sudoers.d

View File

@ -6,3 +6,13 @@
state: present
with_items: "{{ pacman_pkgs }}"
- name: Configure sudoers
template:
src: files/sudoers
dest: /etc/sudoers
mode: 0440
- name: Create sudo group
group:
name: sudo
state: present