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:
Alan Orth 2019-10-05 12:29:30 +03:00
parent c2a92269e4
commit 80df220602
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 6 additions and 6 deletions

View File

@ -13,5 +13,5 @@
- name: reload sysctl
command: sysctl -p /etc/sysctl.conf
- name: reload firewalld
systemd: name=firewalld state=reloaded
- name: restart firewalld
systemd: name=firewalld state=restarted

View File

@ -20,7 +20,7 @@
when: ansible_distribution_major_version is version_compare('8', '>=')
command: tidy -xml -iq -m -w 0 /etc/firewalld/zones/public.xml
notify:
- reload firewalld
- restart firewalld
- name: Copy ipsets of abusive IPs
when: ansible_distribution_major_version is version_compare('8', '>=')
@ -29,7 +29,7 @@
- abusers-ipv4.xml
- abusers-ipv6.xml
notify:
- reload firewalld
- restart firewalld
tags: firewall
# vim: set sw=2 ts=2:

View File

@ -16,7 +16,7 @@
when: ansible_distribution_version is version_compare('15.04', '>=')
command: tidy -xml -iq -m -w 0 /etc/firewalld/zones/public.xml
notify:
- reload firewalld
- restart firewalld
- name: Copy ipsets of abusive IPs
when: ansible_distribution_major_version is version_compare('15.04', '>=')
@ -25,7 +25,7 @@
- abusers-ipv4.xml
- abusers-ipv6.xml
notify:
- reload firewalld
- restart firewalld
tags: firewall
# vim: set sw=2 ts=2: