Merge pull request #175 from wezm/become-pass

Use become_pass for sudo password
This commit is contained in:
dw 2018-03-30 12:01:21 +05:45 committed by GitHub
commit f440e88f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class Connection(ansible.plugins.connection.ConnectionBase):
cast({ cast({
'method': 'sudo', 'method': 'sudo',
'username': self._play_context.become_user, '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, 'python_path': python_path or self.python_path,
'sudo_path': self.sudo_path, 'sudo_path': self.sudo_path,
'connect_timeout': self._play_context.timeout, 'connect_timeout': self._play_context.timeout,