From d88264ee3b65c2c2375c56c2fa48bfefa464c76b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 15 Jun 2016 11:23:14 -0400 Subject: [PATCH] add executable if none exists when become this is needed as become adds commands that require shell (cherry picked from commit 4acac55d233ac09745b56c8a577a2404019d6e9e) --- lib/ansible/playbook/play_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play_context.py b/lib/ansible/playbook/play_context.py index 1f0a04f4cb..4e5649ce7d 100644 --- a/lib/ansible/playbook/play_context.py +++ b/lib/ansible/playbook/play_context.py @@ -447,7 +447,7 @@ class PlayContext(Base): if self.become: - if executable is None: + if not executable: executable = self.executable becomecmd = None