When running version_compare with 2.9.1 the following error occurs
fatal: [srv01]: FAILED! => {"msg": "An unhandled exception occurred while templating '['apparmor', 'apparmor-utils', 'apparmor-profiles', '{{ [] if (ansible_distribution == \"Ubuntu\" and not (ansible_distribution_version|version_compare(\"15.10\", \">=\"))) else [ \"apparmor-profiles-extra\" ] }}']'. Error was a <class 'ansible.errors.AnsibleError'>, original message: template error while templating string: no filter named 'version_compare'. String: {{ [] if (ansible_distribution == \"Ubuntu\" and not (ansible_distribution_version|version_compare(\"15.10\", \">=\"))) else [ \"apparmor-profiles-extra\" ] }}"}
When running version_compare with 2.9.1 the following error occurs