You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
523 B
YAML

---
- 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