1 Commits

Author SHA1 Message Date
536051164d chore(deps): update davidanson/markdownlint-cli2-action action to v20
All checks were successful
Ansible Linter / ansible-lint (push) Successful in 14s
Lint Markdown files / markdown-lint (push) Successful in 5s
Ansible Linter / ansible-lint (pull_request) Successful in 13s
Lint Markdown files / markdown-lint (pull_request) Successful in 6s
2025-05-15 07:01:48 +00:00
7 changed files with 25 additions and 20 deletions

View File

@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@v25.8.2
uses: ansible/ansible-lint@v25.4.0
with:
args: "--config-file .ansible-lint"
setup_python: "true"

View File

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

View File

@ -1,5 +1,6 @@
# networking
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/networking-role/status.svg)](https://drone.cryptic.systems/volker.raschek/networking-role)
[![Ansible Role](https://img.shields.io/ansible/role/d/58433)](https://galaxy.ansible.com/volker_raschek/networking)
With following role can the networking stack provided by systemd be configured.

View File

@ -1,22 +1,25 @@
dependencies: []
galaxy_info:
namespace: volker_raschek
role_name: networking
author: Markus Pesch
company: Cryptic Systems
description: Role to configure network interfaces via systemd on different distributions
company: Cryptic Systems
license: MIT
min_ansible_version: "2.9"
namespace: volker-raschek
platforms:
- name: ArchLinux
- name: "ArchLinux"
versions:
- all
- name: EL
- name: "Ubuntu"
versions:
- all
- name: Fedora
- name: "Fedora"
versions:
- all
- name: Ubuntu
versions:
- all
role_name: networking
- "35"
# galaxy_tags:
# - systemd-networkd
# - wiregurd
# - resolvectl
dependencies: []

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', 'equalto', 'Kind') | map(attribute='value') | first) != 'wireguard'
when: item.netdev_options is defined and
item.netdev_options | selectattr("key", "==", "Kind") and
item.netdev_options | selectattr("value", "!=", "wireguard")
with_items: "{{ systemd_networkd_netdev }}"
- name: Create sensitive systemd.netdev files
@ -38,7 +38,8 @@
group: "{{ systemd_networkd_unix_user }}"
mode: "0600"
when: item.netdev_options is defined and
(item.netdev_options | selectattr('key', 'equalto', 'Kind') | map(attribute='value') | first) == 'wireguard'
item.netdev_options | selectattr("key", "equalto", "Kind") and
item.netdev_options | selectattr("value", "equalto", "wireguard")
with_items: "{{ systemd_networkd_netdev }}"
no_log: true
notify: Restart networkd

View File

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

View File

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