feat: remove static routes

This commit is contained in:
Simon Cornet 2026-02-17 18:09:55 +01:00
commit 407a01550a
4 changed files with 0 additions and 52 deletions

View file

@ -5,12 +5,3 @@
ansible.builtin.service:
name: "nftables"
state: "restarted"
# apply local routes
- name: "apply routes - add static routes"
ansible.builtin.shell:
cmd: |
{% for route in static_routes %}
ip route replace {{ route.destination }} via {{ route.gateway }}{{ ' dev ' + route.interface if route.interface is defined else '' }}{{ ' metric ' + route.metric if route.metric is defined else '' }}
{% endfor %}
when: "static_routes | length > 0"