mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-24 21:14:00 -07:00 
			
		
		
		
	Merge pull request #13934 from dlangille/dlangille-patch-2
Specify the correct default options for sudo_flags
This commit is contained in:
		
				commit
				
					
						11ca4e6282
					
				
			
		
					 1 changed files with 5 additions and 4 deletions
				
			
		|  | @ -587,11 +587,12 @@ the sudo implementation is matching CLI flags with the standard sudo:: | ||||||
| sudo_flags | sudo_flags | ||||||
| ========== | ========== | ||||||
| 
 | 
 | ||||||
| Additional flags to pass to sudo when engaging sudo support.  The default is '-H' which preserves the $HOME environment variable | Additional flags to pass to sudo when engaging sudo support. The default is '-H -S -n' which sets the HOME environment | ||||||
| of the original user.  In some situations you may wish to add or remove flags, but in general most users | variable, prompts for passwords via STDIN, and avoids prompting the user for input of any kind. Note that '-n' will conflict | ||||||
| will not need to change this setting:: | with using password-less sudo auth, such as pam_ssh_agent_auth. In some situations you may wish to add or remove flags, but | ||||||
|  | in general most users will not need to change this setting::: | ||||||
| 
 | 
 | ||||||
|    sudo_flags=-H |    sudo_flags=-H -S -n | ||||||
| 
 | 
 | ||||||
| .. _sudo_user: | .. _sudo_user: | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue