nftables fixes

This commit is contained in:
Wojciech Kozlowski 2022-10-01 16:44:22 +02:00
parent d187a12565
commit 7052c91d27
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S nft -f #!/usr/bin/env -S nft -f
flush table ip br0_inet flush table inet br0_inet
delete table ip br0_inet delete table inet br0_inet

View File

@ -1,4 +1,4 @@
#!/usr/bin/env -S nft -f #!/usr/bin/env -S nft -f
flush table inet wg0_ipv4 flush table ip wg0_ipv4
delete table inet wg0_ipv4 delete table ip wg0_ipv4

View File

@ -23,9 +23,9 @@
when: when:
nftables_conf is changed nftables_conf is changed
- name: Restart networking - name: Reload nft scripts for interfaces
systemd: command: "{{ item }}"
name: networking with_fileglob:
state: restarted - "/usr/local/sbin/post-up-*.nft"
when: when:
nftables_restart is changed nftables_restart is changed