snackpot.yml - set up networking on server

This commit is contained in:
Nick Stokoe
2021-01-12 00:52:15 +00:00
parent 32f6767cd4
commit b602592ea4
6 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
# Enables a sudoer group
# (Debianoid specific)
root_sudoers_group: sudo

View File

@@ -0,0 +1,15 @@
---
- name: Install sudo on debian
apt:
name: sudo
update_cache: yes
- name: configure sudo to allow root access for {{root_sudoers_group}} members
template:
dest: '/etc/sudoers.d/allow-sudoing'
src: 'sudoers.d/allow-sudoing.j2'
owner: root
group: root
mode: 0440
backup: no

View File

@@ -0,0 +1,2 @@
## Allows people in this group to run all commands
%{{ root_sudoers_group }} ALL=(ALL) ALL