debops-contrib / ansible-apparmor

Install and configure AppArmor.
GNU General Public License v3.0
10 stars 6 forks source link

Version check fail with ansible 2.9.1 #8

Open thomasfinstad opened 4 years ago

thomasfinstad commented 4 years ago

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\" ] }}"}
ypid commented 4 years ago

Hi, sorry for the confusion but this repo is not maintained anymore. Please have a look at https://github.com/debops/debops