roles/common: Use correct Ansible version comparison

The major version is "16", not "16.04".
This commit is contained in:
Alan Orth 2020-07-27 14:23:58 +03:00
parent c9ea286fff
commit f4b104953c
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -49,7 +49,7 @@
- restart firewalld
- name: Copy ipsets of abusive IPs
when: ansible_distribution_major_version is version('16.04', '>=')
when: ansible_distribution_version is version('16.04', '>=')
copy: src={{ item }} dest=/etc/firewalld/ipsets/{{ item }} owner=root group=root mode=0600
loop:
- abusers-ipv4.xml