Skip to content

Mitogen For Ansible

https://mitogen.readthedocs.io/

Mitogen for Ansible enhances AnsibleĀ® with huge performance improvements for UNIX networks.

Info

Expect a 1.25x - 7x speedup and a CPU usage reduction of at least 2x, depending on network conditions,
modules executed, and time already spent by targets on useful work.

Mitogen cannot improve a module once it is executing, it can only ensure the module executes as quickly as possible.

configuration

# Add this in ansible.cfg

[defaults]
strategy_plugins = /path/to/mitogen-master/ansible_mitogen/plugins/strategy
strategy = mitogen_linear
export ANSIBLE_STRATEGY_PLUGINS=/path/to/mitogen-master/ansible_mitogen/plugins/strategy
export  ANSIBLE_STRATEGY=mitogen_linear

Then run your ansible as usual, you can add time to mesue a duration like
time ansible-playbook -i ....