How to config proxy for ansible

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
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.0.0.1:1081 %h %pThen, in _/etc/ansible/ansible.cfg _, we can find this:




