From 17372244d46a9b43dbe048a4a8d0d26d9f34a869 Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Tue, 14 Jun 2016 09:29:20 -0700 Subject: [PATCH] Show stderr when there is an error calling setfacl --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index fc885909fe..5b11f2400e 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -367,7 +367,7 @@ class ActionBase(with_metaclass(ABCMeta, object)): if res['rc'] != 0: raise AnsibleError('Failed to set file mode on remote files (rc: {0}, err: {1})'.format(res['rc'], res['stderr'])) 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: # Can't depend on the file being transferred with execute # permissions. Only need user perms because no become was