ansible-fail2ban icon indicating copy to clipboard operation
ansible-fail2ban copied to clipboard

Version comparison failed: ''<'' not supported between instances of ''str'' and ''int'''

Open mmehnert opened this issue 1 year ago • 0 comments

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

mmehnert avatar Feb 25 '24 11:02 mmehnert