ci: add various configs and linter fixes
This commit is contained in:
parent
18bee6f198
commit
b92f2c6175
5 changed files with 18 additions and 6 deletions
|
|
@ -11,7 +11,8 @@
|
|||
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 '' }}
|
||||
ip route replace {{ route.destination }} via {{ route.gateway }}
|
||||
{% if route.interface is defined %}dev {{ route.interface }}{% endif %}
|
||||
{% endfor %}
|
||||
when: "static_routes | length > 0"
|
||||
changed_when: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue