mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Revert "Revert "Actually wait for password prompt in remote sudo execution. Totally breaks stderr debugging"
This reverts commit e16114034c
.
Conflicts:
lib/ansible/connection.py
This commit is contained in:
parent
40f603539c
commit
0d5bee2dfa
2 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
user: root
|
user: root
|
||||||
|
sudo: True
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,8 @@ import re
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import pipes
|
import pipes
|
||||||
|
import socket
|
||||||
|
import random
|
||||||
|
|
||||||
from ansible import errors
|
from ansible import errors
|
||||||
# prevent paramiko warning noise
|
# prevent paramiko warning noise
|
||||||
|
@ -37,6 +39,7 @@ with warnings.catch_warnings():
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
|
|
||||||
|
RANDOM_PROMPT_LEN = 32 # 32 random chars in [a-z] gives > 128 bits of entropy
|
||||||
|
|
||||||
|
|
||||||
class Connection(object):
|
class Connection(object):
|
||||||
|
|
Loading…
Reference in a new issue