From a2cfaee1a2f48215c816c5985c0dd8541ab3b31b Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Tue, 7 Apr 2020 14:03:24 +0200 Subject: [PATCH] v28: Ensure become and become_user params are honored --- pytest_ansible/module_dispatcher/v28.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytest_ansible/module_dispatcher/v28.py b/pytest_ansible/module_dispatcher/v28.py index 1487542b..6b7b1067 100644 --- a/pytest_ansible/module_dispatcher/v28.py +++ b/pytest_ansible/module_dispatcher/v28.py @@ -114,6 +114,8 @@ def _run(self, *module_args, **complex_args): play_ds = dict( name="pytest-ansible", hosts=self.options['host_pattern'], + become=self.options['become'], + become_user=self.options['become_user'], gather_facts='no', tasks=[ dict(