Compare commits
54
Commits
0.1.1
..
fc1e4a8e09
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc1e4a8e09
|
||
|
|
335a950aac | ||
|
|
e66d13bd84
|
||
|
|
992b6b7960 | ||
|
|
b53ae6f5e5
|
||
|
|
d66aa95e92 | ||
|
|
d6a65f8117
|
||
|
|
9347264fde | ||
|
|
3909d464ab
|
||
|
|
586a179798 | ||
|
|
23e6061900
|
||
|
|
a81fcfd641 | ||
|
|
b6ee065885
|
||
|
|
283d81d81a
|
||
|
|
b22af06a7a
|
||
|
|
2b50e77288
|
||
|
|
bb09fde9a0
|
||
|
|
0e0517165a
|
||
|
|
e07914b6b9
|
||
|
|
f7d2df9258 | ||
|
|
7c916164ce
|
||
|
|
337c06388c | ||
|
|
e018a22da1
|
||
|
|
759b8d4268 | ||
|
|
8a1f65aae0
|
||
|
|
998feaf274 | ||
|
|
e47b8b4da5
|
||
|
|
ccd976301f | ||
|
|
5fc96104f8
|
||
|
|
6ea4a99156
|
||
|
|
2746306ca6 | ||
|
|
21434fbc9c
|
||
|
|
0f0d89a957 | ||
|
|
24444aa244
|
||
|
|
427fe33626 | ||
|
|
2447148ed5
|
||
|
|
abad49af8c | ||
|
|
47dfa93fb5
|
||
|
|
97990588fe | ||
|
|
4a29214fc9
|
||
|
|
43a468e96b | ||
|
|
aa26673824 | ||
|
|
7fb49ef186
|
||
|
|
8d9cdda9ec
|
||
|
|
43b712f92a
|
||
|
|
cd478abf28 | ||
|
|
4c8dc572a6
|
||
|
|
0cc341f270 | ||
|
|
0cff9707b7
|
||
|
|
602819140c | ||
|
|
20b5e777d8
|
||
|
|
d5eec83c87 | ||
|
|
d0903ad3cd
|
||
|
|
9afbe53230
|
@@ -12,9 +12,9 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible/ansible-lint@v25.7.0
|
uses: ansible/ansible-lint@5fac056c45595896c973fbde871f01f6cb14d74c # v26.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.2.2
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
- uses: DavidAnson/markdownlint-cli2-action@ded1f9488f68a970bc66ea5619e13e9b52e601cd # v23.2.0
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
name: Release Ansible Role
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '**'
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release Ansible Role
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install Ansible Galaxy
|
||||||
|
run: |
|
||||||
|
apt update --yes
|
||||||
|
apt install --yes ansible
|
||||||
|
- env:
|
||||||
|
ANSIBLE_GALAXY_TOKEN: ${{ secrets.ANSIBLE_GALAXY_TOKEN }}
|
||||||
|
name: Update Ansible Role in Ansible Galaxy
|
||||||
|
run: |
|
||||||
|
ansible-galaxy role import --token=${ANSIBLE_GALAXY_TOKEN} volker-raschek ${GITHUB_REPOSITORY#*/}
|
||||||
Vendored
+14
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"ansible.python.interpreterPath": "/bin/python",
|
||||||
|
"files.associations": {
|
||||||
|
"**/.gitea/**/*.yml": "yaml",
|
||||||
|
"**/.gitea/**/*.yaml": "yaml",
|
||||||
|
"docker-compose*.yml": "dockercompose",
|
||||||
|
"*.yml": "ansible",
|
||||||
|
"*.yaml": "ansible",
|
||||||
|
".yamllint": "yaml",
|
||||||
|
".yamllint.yml": "yaml",
|
||||||
|
".yamllint.yaml": "yaml"
|
||||||
|
},
|
||||||
|
"rewrap.wrappingColumn": 120
|
||||||
|
}
|
||||||
@@ -1,7 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Include OS-specific variables
|
- name: Include OS-specific variables
|
||||||
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
|
||||||
|
vars:
|
||||||
|
params:
|
||||||
|
files:
|
||||||
|
- "{{ ansible_facts['distribution'] }}_{{ ansible_facts['architecture'] }}.yaml"
|
||||||
|
- "{{ ansible_facts['distribution'] }}.yaml"
|
||||||
|
- "{{ ansible_facts['os_family'] }}_{{ ansible_facts['architecture'] }}.yaml"
|
||||||
|
- "{{ ansible_facts['os_family'] }}.yaml"
|
||||||
|
- main.yaml
|
||||||
|
paths:
|
||||||
|
- vars
|
||||||
|
|
||||||
- name: "Remove existing systemd-networkd configuration"
|
- name: "Remove existing systemd-networkd configuration"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@@ -25,9 +35,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 +48,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