下载安装包
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