From a7f93be2b6a3fd5e1100be0c916f6b8b4e591111 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 22 Jun 2016 05:42:37 -0700 Subject: [PATCH] Use find -exec + so that failures will be visible in find's exit code (#16389) Fixes #16385 --- lib/ansible/plugins/shell/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/shell/__init__.py b/lib/ansible/plugins/shell/__init__.py index ef1c5bb9291..73cc66f5c90 100644 --- a/lib/ansible/plugins/shell/__init__.py +++ b/lib/ansible/plugins/shell/__init__.py @@ -92,7 +92,7 @@ class ShellBase(object): cmd = ['setfacl', '-m', 'u:%s:%s' % (user, mode)] if recursive: - cmd = ['find', path, '-exec'] + cmd + ["'{}'", "';'"] + cmd = ['find', path, '-exec'] + cmd + ["'{}'", "'+'"] else: cmd.append(path)