mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
AC-432. Handle responding to SSH password prompt.
This commit is contained in:
parent
9ea649050a
commit
c7240dfd83
@ -575,11 +575,12 @@ class RunProjectUpdate(BaseTask):
|
||||
def get_password_prompts(self):
|
||||
d = super(RunProjectUpdate, self).get_password_prompts()
|
||||
d.update({
|
||||
r'Username for.*:': 'scm_username',
|
||||
r'Password for.*:': 'scm_password',
|
||||
r'^Password:\s*?$': 'scm_password', # SSH prompt for git.
|
||||
re.compile(r'^Username for.*:\s*?$', re.M): 'scm_username',
|
||||
re.compile(r'^Password for.*:\s*?$', re.M): 'scm_password',
|
||||
re.compile(r'^Password:\s*?$', re.M): 'scm_password',
|
||||
re.compile(r'^\S+?@\S+?\'s\s+?password:\s*?$', re.M): 'scm_password',
|
||||
# FIXME: Configure whether we should auto accept host keys?
|
||||
r'Are you sure you want to continue connecting \(yes/no\)\?': 'yes',
|
||||
re.compile(r'^Are you sure you want to continue connecting \(yes/no\)\?\s*?$', re.M): 'yes',
|
||||
})
|
||||
return d
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user