配置Ansible加速
下载安装包
wget https://files.pythonhosted.org/packages/source/m/mitogen/mitogen-0.2.7.tar.gz
tar axf mitogen-0.2.7.tar.gz -C /opt/
配置ansible配置文件
[defaults]
strategy_plugins = /opt/mitogen-0.2.7/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
注: mitogen中也有三种模式
- mitogen_linear: 对应原生的linear
- mitogen_free: 对应原生的free
- mitogen_host_pinned: 对应原生的host_pinned
https://github.com/dw/mitogen/blob/master/docs/ansible_detailed.rst
————————————————————————
作者:乔克叔叔
版权声明:自由转载-非商用-非衍生-转载请注明出处!

浙公网安备 33010602011771号