mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
removed incorrect assumption on become user being set
This commit is contained in:
parent
ff15f374ad
commit
a267f93c83
1 changed files with 0 additions and 4 deletions
|
@ -60,10 +60,6 @@ class Become:
|
||||||
|
|
||||||
self._detect_privilege_escalation_conflict(ds)
|
self._detect_privilege_escalation_conflict(ds)
|
||||||
|
|
||||||
# Setting user implies setting become/sudo/su to true
|
|
||||||
if 'become_user' in ds and not ds.get('become', False):
|
|
||||||
ds['become'] = True
|
|
||||||
|
|
||||||
# Privilege escalation, backwards compatibility for sudo/su
|
# Privilege escalation, backwards compatibility for sudo/su
|
||||||
if 'sudo' in ds or 'sudo_user' in ds:
|
if 'sudo' in ds or 'sudo_user' in ds:
|
||||||
ds['become_method'] = 'sudo'
|
ds['become_method'] = 'sudo'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue