From 3b16036ce28a8c3b604dd658279e0120de351d7b Mon Sep 17 00:00:00 2001 From: Thomas ten Cate Date: Thu, 23 May 2019 22:01:40 +0200 Subject: [PATCH] Keep machinectl from parsing options of cmd (#56572) This is needed on machinectl versions prior to v231 (https://github.com/systemd/systemd/pull/3095/commits/d6c3537ea91e33d7c87ffe73851e87d366e2a39d to be precise). Fixes #56571 --- lib/ansible/plugins/become/machinectl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/become/machinectl.py b/lib/ansible/plugins/become/machinectl.py index 811f9c514e..d52aa65ff7 100644 --- a/lib/ansible/plugins/become/machinectl.py +++ b/lib/ansible/plugins/become/machinectl.py @@ -84,4 +84,4 @@ class BecomeModule(BecomeBase): become = self._get_option('become_exe') or self.name flags = self.get_option('flags') or '' user = self.get_option('become_user') or '' - return '%s shell -q %s %s@ %s' % (become, flags, user, cmd) + return '%s shell -q %s %s@ -- %s' % (become, flags, user, cmd)