mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
fixed bug on using su on play level not setting become method correctly
This commit is contained in:
parent
a47c132695
commit
bbdcba53da
2 changed files with 2 additions and 1 deletions
|
@ -172,6 +172,7 @@ class Play(object):
|
|||
elif 'su' in ds:
|
||||
self.become=True
|
||||
self.become=ds['su']
|
||||
self.become_method='su'
|
||||
if 'su_user' in ds:
|
||||
self.become_user=ds['su_user']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue