Compare commits

...

2 Commits

Author SHA1 Message Date
Bertrand Benjamin e50ccd7ef0 Feat: add sudo group and sudoers 2022-01-12 14:56:04 +01:00
Bertrand Benjamin 8e98717b54 Feat: add vifm 2022-01-12 14:53:35 +01:00
3 changed files with 18 additions and 0 deletions

View File

@ -29,6 +29,7 @@ pacman_admin:
- cifs-utils
- traceroute
- smartmontools
- vifm
pacman_pkgs:
- "{{ pacman_base }}"

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