initial checkin

This commit is contained in:
Radar231 2021-07-22 23:14:57 -04:00
commit 2e3f312a0a
2 changed files with 21 additions and 0 deletions

3
files/sudoers_user.j2 Normal file
View File

@ -0,0 +1,3 @@
# User rules added by ansible
{{ sudoers_user }} ALL=(ALL) NOPASSWD:ALL

18
tasks/main.yml Normal file
View File

@ -0,0 +1,18 @@
---
#####################################################################
#
# Set variable 'sudoers_user' when calling role
#
#####################################################################
# tasks for sudoers
- name: Copy sudoers file to /etc/sudoers.d/
template:
src: files/sudoers_user.j2
dest: /etc/sudoers.d/sudoers_user
mode: "0440"
owner: root
group: root
# EOF