Browse Source

Merge "Fix "nftables" ansible role"

changes/97/788497/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
52b14863ef
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      roles/nftables/tasks/main.yaml

+ 4
- 2
roles/nftables/tasks/main.yaml View File

@ -33,11 +33,13 @@
- name: Restore saved IPv4 iptables rules, stored by iptables-persistent
shell:
cmd: |
iptables-restore '{{ ipv4_rules_file }}'
iptables-restore '{{ ipv4_rules_file.stat.path }}'
become: yes
when: ipv4_rules_file.stat.exists
- name: Restore saved IPv6 iptables rules, stored by iptables-persistent
shell:
cmd: |
ip6tables-restore '{{ ipv6_rules_file }}'
ip6tables-restore '{{ ipv6_rules_file.stat.path }}'
become: yes
when: ipv6_rules_file.stat.exists

Loading…
Cancel
Save