Feat: add sudo group and sudoers
This commit is contained in:
parent
8e98717b54
commit
e50ccd7ef0
7
roles/core/files/sudoers
Normal file
7
roles/core/files/sudoers
Normal 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
|
@ -6,3 +6,13 @@
|
|||||||
state: present
|
state: present
|
||||||
with_items: "{{ pacman_pkgs }}"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user