ci: add various configs and linter fixes

This commit is contained in:
Simon Cornet 2026-02-16 17:51:23 +01:00
commit b92f2c6175
5 changed files with 18 additions and 6 deletions

View file

@ -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