Simplify sudoers config by using copy content parameter
Delete unneded file
This commit is contained in:
		@@ -1 +0,0 @@
 | 
			
		||||
%wheel ALL=(ALL) NOPASSWD: ALL
 | 
			
		||||
@@ -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 }}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user