|
|
|
@ -538,7 +538,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
|
|
|
|
raise AnsibleError('Failed to change ownership of the temporary files Ansible needs to create despite connecting as a privileged user. '
|
|
|
|
|
'Unprivileged become user would be unable to read the file.')
|
|
|
|
|
elif res['rc'] != 0:
|
|
|
|
|
if C.ALLOW_WORLD_READABLE_TMPFILES:
|
|
|
|
|
if self.get_shell_option('world_readable_temp', C.ALLOW_WORLD_READABLE_TMPFILES):
|
|
|
|
|
# chown and fs acls failed -- do things this insecure
|
|
|
|
|
# way only if the user opted in in the config file
|
|
|
|
|
display.warning('Using world-readable permissions for temporary files Ansible needs to create when becoming an unprivileged user. '
|
|
|
|
|