OpenVPN Ansible / Ansible Syntax Check (push) Successful in 43s
OpenVPN Ansible / Ansible Lint (push) Successful in 1m8s
OpenVPN Ansible / Deploy VPN Networking and OpenVPN (push) Successful in 3m32s
OpenVPN Ansible / Generate SBOM (push) Successful in 55s
OpenVPN Ansible / Scan SBOM with Trivy (push) Successful in 18s
- Add a dedicated role and workflow to generate VPN JWT identities and export public keys - Run identity preparation automatically for VPN nodes awaiting OpenBao registration - Gate OpenVPN and PKI setup until each node is registered - Split PKI setup into runtime, configuration, service, and initial certificate tasks - Restore TAP and bridge attachment after OpenVPN restarts - Remove bundled server certificate and private key
27 lines
704 B
YAML
27 lines
704 B
YAML
---
|
|
- name: Restart openvpn
|
|
ansible.builtin.systemd:
|
|
name: "{{ openvpn_service }}"
|
|
state: restarted
|
|
register: openvpn_restart_result
|
|
listen: Restart openvpn
|
|
|
|
- name: Wait for tap0 after OpenVPN restart
|
|
ansible.builtin.command: ip link show tap0
|
|
register: openvpn_tap_check
|
|
retries: 10
|
|
delay: 10
|
|
until: openvpn_tap_check.rc == 0
|
|
changed_when: false
|
|
listen: Restart openvpn
|
|
|
|
- name: Bring tap0 up after OpenVPN restart
|
|
ansible.builtin.command: ip link set tap0 up
|
|
changed_when: false
|
|
listen: Restart openvpn
|
|
|
|
- name: Attach tap0 to bridge after OpenVPN restart
|
|
ansible.builtin.command: ip link set tap0 master br-main-vpn
|
|
changed_when: false
|
|
listen: Restart openvpn
|