Ansible 2.2.1 and 2.1.4 FINAL have been released!

Hi all, we are happy to announce that Ansible 2.2.1 and 2.1.4 have been released.

This release fixes a few bugs, but the main fix is for CVE-2016-9587 which was previously disclosed during the RC process.

As always, these updates are available via PyPi and releases.ansible.com now, and packages for distros will be available as soon as possible.

If you discover any errors, or if you see any regressions from playbooks which work on 1.9.x and prior, please open a Github issue and be sure to mention the version of Ansible you’re running.

Thanks, and enjoy!

Thanks

On our side this breaks existing playbooks running on rhel6 where roles are applied conditionally.
like the following one:

  • role: ntpd_slewing_mode
    tags: [“ntp_options”]
    when: ansible_distribution_major_version == “6”

and lead to the following error:

TASK [ntpd_slewing_mode : Add the -x as OPTIONs if not in /etc/sysconfig/ntpd] *
fatal: [127.0.0.1]: FAILED! => {“failed”: true, “msg”: “The conditional check ‘ansible_distribution_major_version == "6"’ failed. The error was: ’
AnsibleEnvironment’ object has no attribute ‘_generate’\n\nThe error appears to have been in ‘/usr/share/oetune/playbooks/roles/ntpd_slewing_mode/tasks/main.yml’: line 26, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Add
the -x as OPTIONs if not in /etc/sysconfig/ntpd\n ^ here\n”}
to retry, use: --limit @/usr/share/oetune/playbooks/hocoe.retry

Applying the Fix for
‘bug in Conditional for older jinja2 versions’
aka commit: 2f0dba4f36238f0f740467161ae00f22041cd423 (on branch stable-2.2)

Solved the issue.

As we have numerous playbooks with this type of coding for now
Can we expect a 2.2.1-next soon ?

Again thanks

Phil