Commit b92f2c61 authored by Simon Cornet's avatar Simon Cornet
Browse files

ci: add various configs and linter fixes

parent 18bee6f1
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
{
  // files to lint
  "globs": [
    "readme.md"
  ],
  // linting rules
  "config": {
    "MD013": {
      "line_length": 120
    }
  }
}
+2 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
    # due to semaphore bug we need to do this ourselves
    - name: "force-update requirements"
      ansible.builtin.command:
        cmd: "ansible-galaxy install -f -r roles/requirements.yaml"
        cmd: "ansible-galaxy install -f -r roles/requirements.yml"
      become: false
      delegate_to: "localhost"
      changed_when: false
+0 −0

File moved.

+3 −4
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@
        {% else %}
        down ip route del {{ route.destination }} via {{ route.gateway }}{{ ' dev ' + route.interface if route.interface is defined else '' }}
        up ip route add {{ route.destination }} via {{ route.gateway }}{{ ' dev ' + route.interface if route.interface is defined else '' }}

        {% endif %}
      {% endfor %}
    insertafter: "^iface {{ lan_interface }} inet.*\\n(\\s+.*\\n)*\\s+netmask"