mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #435 from arky/file-module-fixes
Using file module instead of chmod (Fixes #326) Closes PR #326
This commit is contained in:
		
						commit
						86aec9442a
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -33,7 +33,8 @@
 | 
			
		|||
#        backup=yes
 | 
			
		||||
 | 
			
		||||
- name: Edit the sudoers file -- first make it editable
 | 
			
		||||
  shell: chmod 0640 /etc/sudoers
 | 
			
		||||
  file: path=/etc/sudoers
 | 
			
		||||
        mode=0640
 | 
			
		||||
 | 
			
		||||
- name: Have sudo log all commands it handles
 | 
			
		||||
  lineinfile: regexp=logfile
 | 
			
		||||
| 
						 | 
				
			
			@ -52,4 +53,5 @@
 | 
			
		|||
              dest=/etc/sudoers
 | 
			
		||||
 | 
			
		||||
- name: End editing the sudoers file -- protect it again
 | 
			
		||||
  shell: chmod 0440 /etc/sudoers
 | 
			
		||||
  file: path=/etc/sudoers
 | 
			
		||||
        mode=0440
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue