下载安装包

    1. wget https://github.com/mitogen-hq/mitogen/archive/v0.2.9.tar.gz
    2. tar axf v0.2.9.tar.gz -C /opt/

    配置ansible配置文件

    [defaults]
    strategy_plugins = /opt/mitogen-0.2.9/ansible_mitogen/plugins/strategy
    strategy = mitogen_linear
    

    注: mitogen中也有三种模式

    • mitogen_linear: 对应原生的linear
    • mitogen_free: 对应原生的free
    • mitogen_host_pinned: 对应原生的host_pinned

    注意:ansible与mitogen的版本对应,通常 ansible 2.9 对应 mitogen 0.2.9

    详细内容访问:
    https://github.com/dw/mitogen/blob/master/docs/ansible_detailed.rst