diff --git a/lib/ansible/playbook/play_context.py b/lib/ansible/playbook/play_context.py index 1f0a04f4cb5..4e5649ce7db 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