You've already forked ansible-role-networking
Compare commits
1 Commits
master
...
536051164d
Author | SHA1 | Date | |
---|---|---|---|
536051164d
|
@ -14,7 +14,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible/ansible-lint@v25.8.2
|
uses: ansible/ansible-lint@v25.4.0
|
||||||
with:
|
with:
|
||||||
args: "--config-file .ansible-lint"
|
args: "--config-file .ansible-lint"
|
||||||
setup_python: "true"
|
setup_python: "true"
|
||||||
|
@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.3.0
|
- uses: actions/checkout@v4.2.2
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# networking
|
# networking
|
||||||
|
|
||||||
|
[](https://drone.cryptic.systems/volker.raschek/networking-role)
|
||||||
[](https://galaxy.ansible.com/volker_raschek/networking)
|
[](https://galaxy.ansible.com/volker_raschek/networking)
|
||||||
|
|
||||||
With following role can the networking stack provided by systemd be configured.
|
With following role can the networking stack provided by systemd be configured.
|
||||||
|
@ -1,22 +1,25 @@
|
|||||||
dependencies: []
|
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
|
namespace: volker_raschek
|
||||||
|
role_name: networking
|
||||||
author: Markus Pesch
|
author: Markus Pesch
|
||||||
company: Cryptic Systems
|
|
||||||
description: Role to configure network interfaces via systemd on different distributions
|
description: Role to configure network interfaces via systemd on different distributions
|
||||||
|
company: Cryptic Systems
|
||||||
license: MIT
|
license: MIT
|
||||||
min_ansible_version: "2.9"
|
min_ansible_version: "2.9"
|
||||||
namespace: volker-raschek
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: ArchLinux
|
- name: "ArchLinux"
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
- name: EL
|
- name: "Ubuntu"
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
- name: Fedora
|
- name: "Fedora"
|
||||||
versions:
|
versions:
|
||||||
- all
|
- "35"
|
||||||
- name: Ubuntu
|
|
||||||
versions:
|
# galaxy_tags:
|
||||||
- all
|
# - systemd-networkd
|
||||||
role_name: networking
|
# - wiregurd
|
||||||
|
# - resolvectl
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: "Include OS-specific variables"
|
- name: Include OS-specific variables
|
||||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: "Remove existing systemd-networkd configuration"
|
- name: "Remove existing systemd-networkd configuration"
|
||||||
@ -25,9 +25,9 @@
|
|||||||
owner: "{{ systemd_networkd_unix_user }}"
|
owner: "{{ systemd_networkd_unix_user }}"
|
||||||
group: "{{ systemd_networkd_unix_user }}"
|
group: "{{ systemd_networkd_unix_user }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
when:
|
when: item.netdev_options is defined and
|
||||||
item.netdev_options is defined and
|
item.netdev_options | selectattr("key", "==", "Kind") and
|
||||||
(item.netdev_options | selectattr('key', 'equalto', 'Kind') | map(attribute='value') | first) != 'wireguard'
|
item.netdev_options | selectattr("value", "!=", "wireguard")
|
||||||
with_items: "{{ systemd_networkd_netdev }}"
|
with_items: "{{ systemd_networkd_netdev }}"
|
||||||
|
|
||||||
- name: Create sensitive systemd.netdev files
|
- name: Create sensitive systemd.netdev files
|
||||||
@ -38,7 +38,8 @@
|
|||||||
group: "{{ systemd_networkd_unix_user }}"
|
group: "{{ systemd_networkd_unix_user }}"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
when: item.netdev_options is defined and
|
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 }}"
|
with_items: "{{ systemd_networkd_netdev }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
notify: Restart networkd
|
notify: Restart networkd
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#jinja2: lstrip_blocks: True
|
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
|
||||||
#
|
#
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#jinja2: lstrip_blocks: True
|
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
|
||||||
#
|
#
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user