Backport/2.8/57057 add terminal initial prompt for initial connection (#57178)
* add terminal initial prompt for initial connection (#57057)
(cherry picked from commit 9e1f184b2d
)
* changelogs fragments
* update changelogs fragments
This commit is contained in:
parent
01c6915eba
commit
19ffe970f7
2 changed files with 8 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- add terminal initial prompt for initial connection(https://github.com/ansible/ansible/pull/57057).
|
|
@ -31,7 +31,13 @@ class TerminalModule(TerminalBase):
|
|||
re.compile(br'[\r\n]?<.+>(?:\s*)$'),
|
||||
re.compile(br'[\r\n]?\[.+\](?:\s*)$'),
|
||||
]
|
||||
#: terminal initial prompt
|
||||
#: The password needs to be changed. Change now? [Y/N]:
|
||||
terminal_initial_prompt = br'Change\s*now\s*\?\s*\[Y\/N\]\s*:'
|
||||
|
||||
#: terminal initial answer
|
||||
#: do not change password when it is asked to change with initial connection.
|
||||
terminal_initial_answer = b'N'
|
||||
terminal_stderr_re = [
|
||||
re.compile(br"% ?Error: "),
|
||||
re.compile(br"^% \w+", re.M),
|
||||
|
|
Loading…
Reference in a new issue