You've already forked ansible-role-networking
Compare commits
11 Commits
c105d7af46
...
0.1.2
Author | SHA1 | Date | |
---|---|---|---|
9afbe53230
|
|||
723eca2360
|
|||
e6b32b1641
|
|||
69c258a878
|
|||
e12087c54e
|
|||
fcd61651c1
|
|||
3e1c10f2e4 | |||
af4f7a738f
|
|||
011ed35588
|
|||
820cfdfc7e
|
|||
6d6006b556
|
@ -14,7 +14,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run ansible-lint
|
||||
uses: ansible/ansible-lint@v25.5.0
|
||||
uses: ansible/ansible-lint@v25.7.0
|
||||
with:
|
||||
args: "--config-file .ansible-lint"
|
||||
setup_python: "true"
|
||||
|
@ -1,6 +1,5 @@
|
||||
# networking
|
||||
|
||||
[](https://drone.cryptic.systems/volker.raschek/networking-role)
|
||||
[](https://galaxy.ansible.com/volker_raschek/networking)
|
||||
|
||||
With following role can the networking stack provided by systemd be configured.
|
||||
|
@ -1,25 +1,22 @@
|
||||
dependencies: []
|
||||
galaxy_info:
|
||||
namespace: volker_raschek
|
||||
role_name: networking
|
||||
author: Markus Pesch
|
||||
description: Role to configure network interfaces via systemd on different distributions
|
||||
company: Cryptic Systems
|
||||
description: Role to configure network interfaces via systemd on different distributions
|
||||
license: MIT
|
||||
min_ansible_version: "2.9"
|
||||
namespace: volker-raschek
|
||||
platforms:
|
||||
- name: "ArchLinux"
|
||||
- name: ArchLinux
|
||||
versions:
|
||||
- all
|
||||
- name: "Ubuntu"
|
||||
- name: EL
|
||||
versions:
|
||||
- all
|
||||
- name: "Fedora"
|
||||
- name: Fedora
|
||||
versions:
|
||||
- "35"
|
||||
|
||||
# galaxy_tags:
|
||||
# - systemd-networkd
|
||||
# - wiregurd
|
||||
# - resolvectl
|
||||
|
||||
dependencies: []
|
||||
- all
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- all
|
||||
role_name: networking
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
|
||||
#jinja2: lstrip_blocks: True
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
|
||||
#jinja2: lstrip_blocks: True
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
Reference in New Issue
Block a user