From cc6733bd19e2e6423eda86eb65c7bbd6a9bc7c1f Mon Sep 17 00:00:00 2001 From: Charles Guertin Date: Fri, 2 Aug 2024 20:21:31 -0400 Subject: [PATCH] use community openvpn3 package --- .github/workflows/ansible-install.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ansible-install.yml b/.github/workflows/ansible-install.yml index 6f041d5..350e059 100644 --- a/.github/workflows/ansible-install.yml +++ b/.github/workflows/ansible-install.yml @@ -12,17 +12,11 @@ jobs: - name: Check out the codebase. uses: actions/checkout@v2 - - name: Install OpenVPN - run: | - sudo apt-get update - sudo apt-get --assume-yes --no-install-recommends install openvpn3 - - - name: Setup VPN config - run: | - echo "${{ secrets.VPN_CONFIG }}" > config.ovpn - - - name: Connect VPN - run: sudo openvpn3 session-start --dco true --config config.ovpn --background + - uses: dbritto-dev/openvpn3-action@main + with: + vpn-client-config: ${{ secrets.VPN_CONFIG }} + script: | + sudo openvpn3 sessions-list - name: Wait for a VPN connection timeout-minutes: 1