mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #16279 from md5/show-facl-error
Show stderr when there is an error calling setfacl
This commit is contained in:
commit
9e2e2b1c54
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||||
if res['rc'] != 0:
|
if res['rc'] != 0:
|
||||||
raise AnsibleError('Failed to set file mode on remote files (rc: {0}, err: {1})'.format(res['rc'], res['stderr']))
|
raise AnsibleError('Failed to set file mode on remote files (rc: {0}, err: {1})'.format(res['rc'], res['stderr']))
|
||||||
else:
|
else:
|
||||||
raise AnsibleError('Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user. For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user')
|
raise AnsibleError('Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user (rc: {0}, err: {1}). For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user'.format(res['rc'], res['stderr']))
|
||||||
elif execute:
|
elif execute:
|
||||||
# Can't depend on the file being transferred with execute
|
# Can't depend on the file being transferred with execute
|
||||||
# permissions. Only need user perms because no become was
|
# permissions. Only need user perms because no become was
|
||||||
|
|
Loading…
Reference in a new issue