mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	cleaner Ansible output
This commit is contained in:
		
							parent
							
								
									71cb3ec713
								
							
						
					
					
						commit
						8d58b1cfbb
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
					@ -32,24 +32,24 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#        backup=yes
 | 
					#        backup=yes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: edit the sudoers file--first make it editable
 | 
					- name: Edit the sudoers file -- first make it editable
 | 
				
			||||||
  shell: chmod 0640 /etc/sudoers
 | 
					  shell: chmod 0640 /etc/sudoers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: have sudo log all commands it handles
 | 
					- name: Have sudo log all commands it handles
 | 
				
			||||||
  lineinfile: regexp=logfile
 | 
					  lineinfile: regexp=logfile
 | 
				
			||||||
              line='Defaults     logfile = /var/log/sudo.log'
 | 
					              line='Defaults     logfile = /var/log/sudo.log'
 | 
				
			||||||
              state=present
 | 
					              state=present
 | 
				
			||||||
              dest=/etc/sudoers
 | 
					              dest=/etc/sudoers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: lets wheel sudo without password
 | 
					- name: Lets wheel sudo without password
 | 
				
			||||||
  lineinfile:
 | 
					  lineinfile:
 | 
				
			||||||
     line: "%wheel ALL= NOPASSWD: ALL"
 | 
					     line: "%wheel ALL= NOPASSWD: ALL"
 | 
				
			||||||
     dest: /etc/sudoers
 | 
					     dest: /etc/sudoers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: remove the line which requires tty
 | 
					- name: Remove the line which requires tty
 | 
				
			||||||
  lineinfile: regexp=requiretty
 | 
					  lineinfile: regexp=requiretty
 | 
				
			||||||
              state=absent
 | 
					              state=absent
 | 
				
			||||||
              dest=/etc/sudoers
 | 
					              dest=/etc/sudoers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: end editing the sudoers file-- protect it again
 | 
					- name: End editing the sudoers file -- protect it again
 | 
				
			||||||
  shell: chmod 0440 /etc/sudoers
 | 
					  shell: chmod 0440 /etc/sudoers
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue