Making blocks support become, and cleaning up sudo/su references

This commit is contained in:
James Cammarata
2015-03-17 10:35:24 -05:00
parent b11be68249
commit 316284c56b
11 changed files with 44 additions and 21 deletions

View File

@@ -74,8 +74,7 @@ class ActionModule(ActionBase):
sudoable = True
# set file permissions, more permissive when the copy is done as a different user
if ((self._connection_info.sudo and self._connection_info.sudo_user != 'root') or
(self._connection_info.su and self._connection_info.su_user != 'root')):
if self._connection_info.become and self._connection_info.become_user != 'root':
chmod_mode = 'a+rx'
sudoable = False
else: