乔克叔叔的博客,公众号:运维开发故事

配置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

posted @ 2020-04-28 13:55  乔克爱运维  阅读(440)  评论(0编辑  收藏  举报