2 Commits
0.1.0 ... 0.1.2

Author SHA1 Message Date
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
723eca2360 fix(templating): adapt lstrip_blocks
Some checks failed
Ansible Linter / ansible-lint (push) Successful in 1m2s
Lint Markdown files / markdown-lint (push) Failing after 10m6s
2025-08-10 18:16:08 +02:00
3 changed files with 7 additions and 8 deletions

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

View File

@ -1,4 +1,4 @@
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
#jinja2: lstrip_blocks: True
#
# {{ ansible_managed }}
#

View File

@ -1,4 +1,4 @@
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
#jinja2: lstrip_blocks: True
#
# {{ ansible_managed }}
#