roles/common: Restart firewalld instead of reload
I'm having problems with reload hanging on Debian 10 so I will just revert to the older behavior of restarting.
This commit is contained in:
parent
c2a92269e4
commit
80df220602
@ -13,5 +13,5 @@
|
|||||||
- name: reload sysctl
|
- name: reload sysctl
|
||||||
command: sysctl -p /etc/sysctl.conf
|
command: sysctl -p /etc/sysctl.conf
|
||||||
|
|
||||||
- name: reload firewalld
|
- name: restart firewalld
|
||||||
systemd: name=firewalld state=reloaded
|
systemd: name=firewalld state=restarted
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
when: ansible_distribution_major_version is version_compare('8', '>=')
|
when: ansible_distribution_major_version is version_compare('8', '>=')
|
||||||
command: tidy -xml -iq -m -w 0 /etc/firewalld/zones/public.xml
|
command: tidy -xml -iq -m -w 0 /etc/firewalld/zones/public.xml
|
||||||
notify:
|
notify:
|
||||||
- reload firewalld
|
- restart firewalld
|
||||||
|
|
||||||
- name: Copy ipsets of abusive IPs
|
- name: Copy ipsets of abusive IPs
|
||||||
when: ansible_distribution_major_version is version_compare('8', '>=')
|
when: ansible_distribution_major_version is version_compare('8', '>=')
|
||||||
@ -29,7 +29,7 @@
|
|||||||
- abusers-ipv4.xml
|
- abusers-ipv4.xml
|
||||||
- abusers-ipv6.xml
|
- abusers-ipv6.xml
|
||||||
notify:
|
notify:
|
||||||
- reload firewalld
|
- restart firewalld
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
|
||||||
# vim: set sw=2 ts=2:
|
# vim: set sw=2 ts=2:
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
when: ansible_distribution_version is version_compare('15.04', '>=')
|
when: ansible_distribution_version is version_compare('15.04', '>=')
|
||||||
command: tidy -xml -iq -m -w 0 /etc/firewalld/zones/public.xml
|
command: tidy -xml -iq -m -w 0 /etc/firewalld/zones/public.xml
|
||||||
notify:
|
notify:
|
||||||
- reload firewalld
|
- restart firewalld
|
||||||
|
|
||||||
- name: Copy ipsets of abusive IPs
|
- name: Copy ipsets of abusive IPs
|
||||||
when: ansible_distribution_major_version is version_compare('15.04', '>=')
|
when: ansible_distribution_major_version is version_compare('15.04', '>=')
|
||||||
@ -25,7 +25,7 @@
|
|||||||
- abusers-ipv4.xml
|
- abusers-ipv4.xml
|
||||||
- abusers-ipv6.xml
|
- abusers-ipv6.xml
|
||||||
notify:
|
notify:
|
||||||
- reload firewalld
|
- restart firewalld
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
|
||||||
# vim: set sw=2 ts=2:
|
# vim: set sw=2 ts=2:
|
||||||
|
Loading…
Reference in New Issue
Block a user