Move firewall script to roles. Adjust hosts. ..

This commit is contained in:
2019-09-04 04:04:57 +02:00
parent 3e4b1cf988
commit 444674e8f7
16 changed files with 2012 additions and 1311 deletions

View File

@ -0,0 +1,20 @@
- name: Restart ulogd
service:
name: ulogd
state: restarted
- name: Restart IPv4 Firewall
service:
name: ipt-firewall
state: restarted
when:
- interfaces_ipv4_exists.stat.exists
- main_ipv4_exists.stat.exists
- name: Restart IPv6 Firewall
service:
name: ip6t-firewall
state: restarted
when:
- interfaces_ipv6_exists.stat.exists
- main_ipv6_exists.stat.exists