mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
standardize connection variable names (#51776)
* standardize user/password connection vars * docs: use ansible_user and ansible_password * docs: var precedence for connection vars * docs: ansible_become_pass -> ansible_become_password etc
This commit is contained in:
committed by
Sandra McCann
parent
51061f8a5f
commit
953058d025
@@ -47,6 +47,7 @@ DOCUMENTATION = '''
|
||||
vars:
|
||||
- name: ansible_password
|
||||
- name: ansible_ssh_pass
|
||||
- name: ansible_ssh_password
|
||||
ssh_args:
|
||||
description: Arguments to pass to all ssh cli tools
|
||||
default: '-C -o ControlMaster=auto -o ControlPersist=60s'
|
||||
@@ -605,7 +606,7 @@ class Connection(ConnectionBase):
|
||||
b"-o", b"PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey",
|
||||
b"-o", b"PasswordAuthentication=no"
|
||||
),
|
||||
u"ansible_password/ansible_ssh_pass not set"
|
||||
u"ansible_password/ansible_ssh_password not set"
|
||||
)
|
||||
|
||||
user = self._play_context.remote_user
|
||||
@@ -924,7 +925,7 @@ class Connection(ConnectionBase):
|
||||
|
||||
if states[state] == 'awaiting_prompt':
|
||||
if self._flags['become_prompt']:
|
||||
display.debug('Sending become_pass in response to prompt')
|
||||
display.debug('Sending become_password in response to prompt')
|
||||
stdin.write(to_bytes(self._play_context.become_pass) + b'\n')
|
||||
# On python3 stdin is a BufferedWriter, and we don't have a guarantee
|
||||
# that the write will happen without a flush
|
||||
|
||||
Reference in New Issue
Block a user