ansible-fail2ban
ansible-fail2ban copied to clipboard
Version comparison failed: ''<'' not supported between instances of ''str'' and ''int'''
When running the role against a debian/testing machine I get the following error: ` msg: 'AnsibleError: An unhandled exception occurred while templating ''{{ ''INFO'' if (ansible_distribution == ''Ubuntu'' and ansible_distribution_major_version is version(''16'', ''>='') or ansible_distribution == ''Debian'' and ansible_distribution_major_version is version(''9'', ''>='')) else 3 }}''. Error was a <class ''ansible.errors.AnsibleFilterError''>, original message: Version comparison failed: ''<'' not supported between instances of ''str'' and ''int'''
` running
tasks: - name: Distribution debug: msg="{{ ansible_distribution }} {{ansible_distribution_major_version}}"
on that machine yields:
msg: Debian n/a