Ansible 2.2.0 Final has been released!

Hi all, we’re very happy to announce that Ansible 2.2.0 has been released!

This release includes many new features and improvements (from the RC1 release announcement):

  • Almost 200 new modules!

  • Major performance improvements. In many cases, you should see a 2-3x improvement over 2.1/2.0.

  • include_role now allows for roles to be executed inline with your other tasks, instead of listing them only in the roles: section of your plays (http://docs.ansible.com/ansible/include_role_module.html)

  • The listen feature for handlers allows for much easier notifications of multiple handlers via a pub/sub mechanism (http://docs.ansible.com/ansible/playbooks_intro.html#handlers-running-operations-on-change).

  • Serial batches can now be specified as a list rather than a single integer value, meaning you can do something like this to scale up serial batches:
    serial: [1, 5, 10] # the first batch will be 1 host, 2nd=5 hosts, all other batches will be 10 hosts)

  • Windows tasks can now use “async”, and can also now use the “environment” option to set environment variables.

  • Support for binary modules.

  • New become method: ksu (Kerberos su).

  • New meta option: end_play, which allows for early termination of a play without failing.

  • Meta tasks now support conditional statements.

Here is the official announcement on our website:

https://www.ansible.com/press/ansible-22-delivers-new-automation-capabilities-for-containers-networks-and-cloud

As always, this update is available via PyPi and releases.ansible.com now, and packages for distros will be available as soon as possible.

Thanks and enjoy!

Hi James,

Although the performance improvements are welcomed, I wonder how does this stack compared to 1.9.x version?

There have been discussions here, more specific https://groups.google.com/forum/#!starred/ansible-devel/UU0Tpw-qlhY, and couple of issues raised and outlined in your post here https://groups.google.com/forum/#!starred/ansible-devel/TLEc1NoQ7lA, that revel a serious problem in the very core of 2.x release. Has this been addressed in 2.2.0 and if yes how close is the 2.2 performance to the old 1.9.x branch?

Thanks,
Igor

Hi Igor,

While 2.2 is quite a bit faster than 2.0/2.1, it does still lag a bit behind 1.9. Mainly this slowness is due to the way we’ve changed how workers are created, which in 2.0+ allows us to have strategies but does come with a hit to performance. We’ll still look at ways of improving things in the future, so any analysis/debugging of performance problems is always appreciated.

Thanks!

Awesome to see role_include. I had to do that in a dirty mode including the main task and the vars from the role I wanted to include in another role.

Great to see ansible 2.2.0 released.

M B

Just curious – how long does it usually take for new RPMs to appear on epel or epel-testing?

https://groups.google.com/forum/#!msg/ansible-project/dm59ern73-w/SaBIVJAeBjAJ

kevin

Thanks Kevin. I’ll keep an eye on the status at https://bodhi.fedoraproject.org/updates/?like=ansible