Merge pull request #175 from wezm/become-pass
Use become_pass for sudo password
This commit is contained in:
commit
f440e88f2f
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue