1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-30 04:51:01 +00:00

fixed missed su to become conversion

This commit is contained in:
Brian Coca 2015-03-11 19:23:02 -04:00
parent eb69eb4108
commit f229b770b2

View file

@ -118,7 +118,7 @@ class ActionModule(object):
sudoable = False
else:
chmod_mode = '+rx'
self.runner._remote_chmod(conn, chmod_mode, tmp_src, tmp, sudoable=sudoable, su=self.runner.su)
self.runner._remote_chmod(conn, chmod_mode, tmp_src, tmp, sudoable=sudoable, become=self.runner.become)
# add preparation steps to one ssh roundtrip executing the script
env_string = self.runner._compute_environment_string(conn, inject)