4 Commits

Author SHA1 Message Date
3328c2e80f chore(deps): update actions/checkout action to v5
Some checks failed
Ansible Linter / ansible-lint (push) Failing after 4s
Lint Markdown files / markdown-lint (push) Failing after 3s
Ansible Linter / ansible-lint (pull_request) Failing after 3s
Lint Markdown files / markdown-lint (pull_request) Failing after 3s
2025-08-11 16:02:16 +00:00
d5eec83c87 Merge pull request 'chore(deps): update actions/checkout action to v4.3.0' (#9) from renovate/actions into master
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 14s
Lint Markdown files / markdown-lint (push) Successful in 4s
2025-08-11 13:16:45 +00:00
d0903ad3cd chore(deps): update actions/checkout action to v4.3.0
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 52s
Lint Markdown files / markdown-lint (push) Successful in 8s
Ansible Linter / ansible-lint (pull_request) Successful in 52s
Lint Markdown files / markdown-lint (pull_request) Successful in 8s
2025-08-11 13:02:48 +00:00
9afbe53230 fix: adapt when condition
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 13s
Ansible Linter / ansible-lint (push) Successful in 52s
2025-08-10 20:12:50 +02:00
3 changed files with 7 additions and 8 deletions

View File

@ -12,7 +12,7 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- name: Run ansible-lint
uses: ansible/ansible-lint@v25.7.0
with:

View File

@ -12,7 +12,7 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v5.0.0
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
with:
globs: '**/*.md'

View File

@ -1,6 +1,6 @@
---
- name: Include OS-specific variables
- name: "Include OS-specific variables"
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
- name: "Remove existing systemd-networkd configuration"
@ -25,9 +25,9 @@
owner: "{{ systemd_networkd_unix_user }}"
group: "{{ systemd_networkd_unix_user }}"
mode: "0644"
when: item.netdev_options is defined and
item.netdev_options | selectattr("key", "==", "Kind") and
item.netdev_options | selectattr("value", "!=", "wireguard")
when:
item.netdev_options is defined and
(item.netdev_options | selectattr('key', 'equalto', 'Kind') | map(attribute='value') | first) != 'wireguard'
with_items: "{{ systemd_networkd_netdev }}"
- name: Create sensitive systemd.netdev files
@ -38,8 +38,7 @@
group: "{{ systemd_networkd_unix_user }}"
mode: "0600"
when: item.netdev_options is defined and
item.netdev_options | selectattr("key", "equalto", "Kind") and
item.netdev_options | selectattr("value", "equalto", "wireguard")
(item.netdev_options | selectattr('key', 'equalto', 'Kind') | map(attribute='value') | first) == 'wireguard'
with_items: "{{ systemd_networkd_netdev }}"
no_log: true
notify: Restart networkd