优化ansible速度

1.开启SSH长连接

ssh_args = -C -o ControlMaster=auto -o ControlPersist=1d \\连接保持一天

2.开启pipelining

修改 /etc/ansible/ansible.cfg 文件可以开启 pipelining

pipelining=False

修改为

pipelining=True

#2.1 vim /etc/sudoers

#Defaults requiretty

3.关闭 gathering facts

“gather_facts:  false

猜你喜欢

转载自www.cnblogs.com/hixiaowei/p/9905038.html