feat: add AMD64 and ARM64 compatibility to VPN node configuration
OpenVPN Ansible / Ansible Syntax Check (push) Successful in 5s
OpenVPN Ansible / Ansible Lint (push) Successful in 15s
OpenVPN Ansible / Deploy OpenVPN (push) Failing after 1m27s
OpenVPN Ansible / Generate SBOM (push) Skipped
OpenVPN Ansible / Scan SBOM with Trivy (push) Skipped

This commit is contained in:
2026-10-16 16:28:25 +02:00
parent d0b149fbe0
commit 31f785b2b8
6 changed files with 59 additions and 86 deletions
+11
View File
@@ -1,4 +1,15 @@
---
- name: Validate supported operating system and CPU architecture
ansible.builtin.assert:
that:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_version == '24.04'
- ansible_architecture in ['x86_64', 'aarch64']
fail_msg: >-
vpn-node-config supports Debian-family hosts on linux/amd64 (x86_64) and
linux/arm64 (aarch64); detected {{ ansible_os_family }} /
{{ ansible_architecture }}.
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
@@ -3,4 +3,6 @@ net.ipv4.ip_forward=1
net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.enp7s0.rp_filter=0
{% for interface in ansible_interfaces | default([]) if interface not in ['lo', 'br-main-vpn', 'tap0'] %}
net.ipv4.conf.{{ interface }}.rp_filter=0
{% endfor %}
+1
View File
@@ -7,6 +7,7 @@ openvpn_cert_dir: /etc/openvpn/certs
openvpn_service: openvpn@server.service
openvpn_radius_plugin_path: ""
openvpn_radius_server: 10.1.0.101
openvpn_radius_auth_port: 1812
+26
View File
@@ -7,6 +7,32 @@
state: present
update_cache: true
- name: Locate RADIUS authentication plugin
ansible.builtin.find:
paths:
- /usr/lib
- /usr/lib/{{ ansible_architecture }}-linux-gnu
- /usr/lib/aarch64-linux-gnu
- /usr/lib/x86_64-linux-gnu
patterns: radiusplugin.so
recurse: true
file_type: file
register: openvpn_radius_plugin_candidates
- name: Configure RADIUS authentication plugin path
ansible.builtin.set_fact:
openvpn_radius_plugin_path: "{{ (openvpn_radius_plugin_candidates.files | sort(attribute='path') | first).path }}"
when: openvpn_radius_plugin_candidates.matched | int > 0
- name: Ensure RADIUS authentication plugin was found
ansible.builtin.assert:
that:
- openvpn_radius_plugin_candidates.matched | int > 0
fail_msg: >-
The openvpn-auth-radius package is installed but radiusplugin.so was not
found. Set openvpn_radius_plugin_path to its installed path for this
distribution and architecture.
- name: Create OpenVPN directories
ansible.builtin.file:
path: "{{ item }}"
+1 -1
View File
@@ -15,7 +15,7 @@ mode server
vlan-tagging
plugin /usr/lib/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf
plugin {{ openvpn_radius_plugin_path }} /etc/openvpn/radiusplugin.cnf
verify-client-cert none
username-as-common-name