blob: e0e662516bec39ba34007f779fe8132280dddddc (
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
copy:
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
copy:
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
|