feat: remove static routes
This commit is contained in:
parent
55395d537b
commit
407a01550a
4 changed files with 0 additions and 52 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue