ansible为服务器集群装python包
一、ansible.cfg
[defaults]
inventory = inventories/python3.7.9
remote_user = 用户名
private_key_file = /Users/用户名/用户名.private_key
host_key_checking = False
remote_port=22
callback_whitelist = profile_tasks
strategy_plugins = /usr/用户名/mitogen-master/ansible_mitogen/plugins/strategy
strategy=mitogen_linear
forks=30
[ssh_connection]
ssh_args = -F ssh.cfg
二、ssh.cfg
Host *
ProxyCommand /usr/local/bin/ncat --proxy 代理地址:8080 --proxy-type http %h %p