News for hackers. Stuff that matters.
Re:Ansible 2.1 Released, with Network Automation, Containers by adamors on Thursday May 26, 2016 @08:49AM (#11777488)
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).

Re:Ansible 2.1 Released, with Network Automation, Containers by TimSAstro on Thursday May 26, 2016 @12:29PM (#11779256)
Have you tried turning on pipelining in ansible.cfg? Details here: http://docs.ansible.com/ansible/intro_configuration.html#pip...
Re:Ansible 2.1 Released, with Network Automation, Containers by vacri on Thursday May 26, 2016 @09:16AM (#11777636)
>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.

Re:Ansible 2.1 Released, with Network Automation, Containers by adamors on Thursday May 26, 2016 @11:13AM (#11778522)
I 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 %}
Re:Ansible 2.1 Released, with Network Automation, Containers by mewm on Thursday May 26, 2016 @03:15PM (#11780697)
hey, kind of off-topic, but wouldn't you be able to like this?

  {{ credentials | to_nice_json }}
Re:Ansible 2.1 Released, with Network Automation, Containers by thenewwazoo on Thursday May 26, 2016 @10:59AM (#11778418)
I'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.
Re:Ansible 2.1 Released, with Network Automation, Containers by bcoca on Thursday May 26, 2016 @11:09AM (#11778495)
speed 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.

Re:Ansible 2.1 Released, with Network Automation, Containers by adamors on Thursday May 26, 2016 @11:17AM (#11778556)
I 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.)