From 391ae16ab945cafd5109ed1153dd4a840a086297 Mon Sep 17 00:00:00 2001 From: Charles Guertin Date: Mon, 16 Dec 2024 14:03:46 -0500 Subject: [PATCH] use new config script for openvpn --- .github/workflows/ansible-install.yml | 6 ++++-- .github/workflows/ansible-updates.yml | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ansible-install.yml b/.github/workflows/ansible-install.yml index 2dad1b0..8a28601 100644 --- a/.github/workflows/ansible-install.yml +++ b/.github/workflows/ansible-install.yml @@ -25,9 +25,11 @@ jobs: - name: Setup VPN config run: | echo -n "${{ secrets.VPN_CONFIG }}" | base64 -d > config.ovpn + sudo openvpn3 config-import --config config.ovpn --name HOME_VPN + sudo openvpn3 config-manage --config HOME_VPN --allow-compression yes - name: Connect VPN - run: sudo openvpn3 session-start --dco true --config config.ovpn + run: sudo openvpn3 session-start --config HOME_VPN - name: Wait for a VPN connection timeout-minutes: 1 @@ -62,4 +64,4 @@ jobs: - name: Kill VPN connection if: always() - run: sudo openvpn3 session-manage --config config.ovpn --disconnect + run: sudo openvpn3 session-manage --config HOME_VPN --disconnect diff --git a/.github/workflows/ansible-updates.yml b/.github/workflows/ansible-updates.yml index 1d2ed51..a64e82b 100644 --- a/.github/workflows/ansible-updates.yml +++ b/.github/workflows/ansible-updates.yml @@ -6,7 +6,7 @@ on: jobs: deploy: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Check out the codebase. uses: actions/checkout@v2 @@ -24,9 +24,11 @@ jobs: - name: Setup VPN config run: | echo -n "${{ secrets.VPN_CONFIG }}" | base64 -d > config.ovpn + sudo openvpn3 config-import --config config.ovpn --name HOME_VPN + sudo openvpn3 config-manage --config HOME_VPN --allow-compression yes - name: Connect VPN - run: sudo openvpn3 session-start --dco true --config config.ovpn + run: sudo openvpn3 session-start --config HOME_VPN - name: Wait for a VPN connection timeout-minutes: 1 @@ -61,4 +63,4 @@ jobs: - name: Kill VPN connection if: always() - run: sudo openvpn3 session-manage --config config.ovpn --disconnect + run: sudo openvpn3 session-manage --config HOME_VPN --disconnect