Added sudoers config
This commit is contained in:
@@ -23,3 +23,12 @@ ntp_servers:
|
||||
ntp_restrict:
|
||||
- '127.0.0.1'
|
||||
- '::1'
|
||||
|
||||
sudoers_sudoers:
|
||||
privileges:
|
||||
- name: root
|
||||
entry: 'ALL=(ALL:ALL) ALL'
|
||||
- name: '%admin'
|
||||
entry: 'ALL=(ALL) ALL'
|
||||
- name: '%sudo'
|
||||
entry: 'ALL=NOPASSWD:ALL'
|
||||
|
||||
8
playbooks/auth.yml
Normal file
8
playbooks/auth.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Configure sudoers
|
||||
hosts: all
|
||||
become: True
|
||||
|
||||
roles:
|
||||
- arillso.sudoers
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
|
||||
- import_playbook: ntp.yml
|
||||
- import_playbook: auth.yml
|
||||
- import_playbook: packages.yml
|
||||
- import_playbook: gitea.yml
|
||||
- import_playbook: dev.yml
|
||||
|
||||
@@ -3,6 +3,8 @@ collections:
|
||||
- name: community.general
|
||||
|
||||
roles:
|
||||
- src: arillso.sudoers
|
||||
version: 2.3.0
|
||||
- src: geerlingguy.git
|
||||
version: 3.0.1
|
||||
- src: geerlingguy.nginx
|
||||
|
||||
Reference in New Issue
Block a user