On our server, we need to configure ansible proxy to manage some servers。
We know that the ssh client configures the proxy in this way.
cat ~/.ssh/config 1 2 3 4 5 6 7 8 9 10 11 Host * User archly StrictHostKeyChecking no TCPKeepAlive yes ConnectTimeout 10 Port 22 ServerAliveInterval 60 # socket 5 # ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p # https ProxyCommand nc -X connect -x 127.