Skip to content

Ansible加速

下载安装包

shell
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 配置文件

shell
[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

最近更新