From 3d5bbb9a636ba36e6f3c6f598c9b8074bf25e274 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Fri, 30 Mar 2018 13:00:43 +1100 Subject: [PATCH] Use become_pass for sudo password --- ansible_mitogen/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_mitogen/connection.py b/ansible_mitogen/connection.py index 2bb458d1..1c404410 100644 --- a/ansible_mitogen/connection.py +++ b/ansible_mitogen/connection.py @@ -198,7 +198,7 @@ class Connection(ansible.plugins.connection.ConnectionBase): cast({ 'method': 'sudo', 'username': self._play_context.become_user, - 'password': self._play_context.password, + 'password': self._play_context.become_pass, 'python_path': python_path or self.python_path, 'sudo_path': self.sudo_path, 'connect_timeout': self._play_context.timeout,