minifirewall: restart manually (systemd unit is not working)

This commit is contained in:
Jérémy Lecour 2017-01-31 17:43:10 +01:00 committed by Jérémy Lecour
parent 0273f2ad56
commit dd432a9c11

View file

@ -74,7 +74,11 @@
register: minifirewall_config_ports
- name: restart minifirewall
service:
name: minifirewall
state: restarted
# service:
# name: minifirewall
# state: restarted
command: /etc/init.d/minifirewall restart
register: minifirewall_init_restart
failed_when: "'starting IPTables rules is now finish : OK' not in minifirewall_init_restart.stdout"
changed_when: "'starting IPTables rules is now finish : OK' in minifirewall_init_restart.stdout"
when: minifirewall_is_running.rc == 0 and (minifirewall_config_ips | changed or minifirewall_config_ports | changed)