From 39c543e3562135ce11a400f966098bd8b052c932 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 3fb02113356..9bd92562b55 100644 --- a/lib/ansible/plugins/shell/__init__.py +++ b/lib/ansible/plugins/shell/__init__.py @@ -93,7 +93,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)