Loading .markdownlint-cli2.jsonc 0 → 100644 +12 −0 Original line number Diff line number Diff line { // files to lint "globs": [ "readme.md" ], // linting rules "config": { "MD013": { "line_length": 120 } } } handlers/main.yaml +2 −1 Original line number Diff line number Diff line Loading @@ -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 playbook.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading roles/requirements.yaml→roles/requirements.yml +0 −0 File moved. View file tasks/routing.yaml +3 −4 Original line number Diff line number Diff line Loading @@ -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" Loading Loading
.markdownlint-cli2.jsonc 0 → 100644 +12 −0 Original line number Diff line number Diff line { // files to lint "globs": [ "readme.md" ], // linting rules "config": { "MD013": { "line_length": 120 } } }
handlers/main.yaml +2 −1 Original line number Diff line number Diff line Loading @@ -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
playbook.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
tasks/routing.yaml +3 −4 Original line number Diff line number Diff line Loading @@ -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" Loading