7 lines
277 B
YAML
7 lines
277 B
YAML
- name: Save iptables rules
|
|
block:
|
|
- name: Save rules with iptables-persistent v4
|
|
ansible.builtin.shell: iptables-save > /etc/iptables/rules.v4
|
|
|
|
- name: Save rules with iptables-persistent v6
|
|
ansible.builtin.shell: ip6tables-save > /etc/iptables/rules.v6
|