skylab
/
skylab-ansible
Archived
2
0
Fork 0

Simplify sudoers config by using copy content parameter

Delete unneded file
This commit is contained in:
Ethan Paul 2021-11-06 00:13:58 -04:00
parent 12eabe1351
commit ce799cceaa
No known key found for this signature in database
GPG Key ID: 6A337337DF6B5B1A
2 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@
%wheel ALL=(ALL) NOPASSWD: ALL

View File

@ -3,7 +3,7 @@
when: ansible_distribution == "Rocky" or ansible_distribution == "CentOS"
become: true
ansible.builtin.copy:
src: wheel-group-no-sudo-password
content: "%wheel ALL=(ALL) NOPASSWD: ALL"
dest: /etc/sudoers.d/30-wheel
owner: root
group: "{{ ansible_user }}"