You've already forked ansible-role-networking
Compare commits
4 Commits
0.1.1
...
3328c2e80f
Author | SHA1 | Date | |
---|---|---|---|
3328c2e80f
|
|||
d5eec83c87 | |||
d0903ad3cd
|
|||
9afbe53230
|
@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible/ansible-lint@v25.7.0
|
uses: ansible/ansible-lint@v25.7.0
|
||||||
with:
|
with:
|
||||||
|
@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4.2.2
|
- uses: actions/checkout@v5.0.0
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
@ -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: item.netdev_options is defined and
|
when:
|
||||||
item.netdev_options | selectattr("key", "==", "Kind") and
|
item.netdev_options is defined and
|
||||||
item.netdev_options | selectattr("value", "!=", "wireguard")
|
(item.netdev_options | selectattr('key', 'equalto', 'Kind') | map(attribute='value') | first) != 'wireguard'
|
||||||
with_items: "{{ systemd_networkd_netdev }}"
|
with_items: "{{ systemd_networkd_netdev }}"
|
||||||
|
|
||||||
- name: Create sensitive systemd.netdev files
|
- name: Create sensitive systemd.netdev files
|
||||||
@ -38,8 +38,7 @@
|
|||||||
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") and
|
(item.netdev_options | selectattr('key', 'equalto', 'Kind') | map(attribute='value') | first) == 'wireguard'
|
||||||
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
|
||||||
|
Reference in New Issue
Block a user