blob: 846eefe25eadf1b433c0adf27712145531227207 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
- name: copy iptables.rules
template:
src: iptables.rules
dest: /etc/iptables/iptables.rules
notify: reload iptables
- name: start and enable iptables service
systemd:
name: iptables.service
enabled: yes
state: started
- name: copy ip6tables.rules
template:
src: ip6tables.rules
dest: /etc/iptables/ip6tables.rules
notify: reload ip6tables
- name: start and enable ip6tables service
systemd:
name: ip6tables.service
enabled: yes
state: started
|