4 ms·
Can anyone comment on the speed of Ansible 2+? I have a bunch of playbooks that still use 1.8 and they are dog slow. Changing the contents of one file can take
by adamors 10y ago
Can anyone comment on the speed of Ansible 2+?
I have a bunch of playbooks that still use 1.8 and they are dog slow. Changing the contents of one file can take ~10 minutes. (Interestingly, running the entire playbook on a clean server is actually faster).
- vacri 10y ago>Changing the contents of one file can take ~10 minutes. O_o That kind of simple operation just zipped by for me on Ansible 1.6, 1.8, 1.9, and 2.0. The only noticeably slow kinds of operations for me are generally the package installs (understandably). I don't use a ton of variables in my templates, though.
- adamors 10y agoI have quite a few variables, yes. One of the files I change frequently is an external configuration file filled with credentials which is managed through variables. It looks something like this: {% for cred in credentials %} {{cred.key}}: {{cred.value}} {% endfor %}
- mewm 10y agohey, kind of off-topic, but wouldn't you be able to like this? {{ credentials | to_nice_json }}
- thenewwazoo 10y agoI'm curious to hear this too. We use Ansible to manage a fleet of a few thousand hosts, and runs take hours and hours and hours.
- bcoca 10y agospeed has been both better and worse, so depends a lot on what your playbook is doing, size of your inventory, vars, etc the only answer i can give you is: test. We do try to keep decent performance, but this is not our main focus.
- adamors 10y agoI use around 1-3 variables per module and 4-5 modules per playbook. Other than that, the actual tasks are trivial (install package x etc.)
- TimSAstro 10y agoHave you tried turning on pipelining in ansible.cfg? Details here: http://docs.ansible.com/ansible/intro_configuration.html#pipelining http://docs.ansible.com/ansible/intro_configuration.html#pip...