Simplify sudoers config by using copy content parameter
Delete unneded file
This commit is contained in:
parent
12eabe1351
commit
ce799cceaa
@ -1 +0,0 @@
|
|||||||
%wheel ALL=(ALL) NOPASSWD: ALL
|
|
@ -3,7 +3,7 @@
|
|||||||
when: ansible_distribution == "Rocky" or ansible_distribution == "CentOS"
|
when: ansible_distribution == "Rocky" or ansible_distribution == "CentOS"
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: wheel-group-no-sudo-password
|
content: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||||
dest: /etc/sudoers.d/30-wheel
|
dest: /etc/sudoers.d/30-wheel
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_user }}"
|
group: "{{ ansible_user }}"
|
||||||
|
Reference in New Issue
Block a user