roles/common: Use correct Ansible version comparison
The major version is "16", not "16.04".
This commit is contained in:
parent
c9ea286fff
commit
f4b104953c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user