diff --git a/.github/workflows/ansible-install.yml b/.github/workflows/ansible-install.yml index 5419c57..2c607fa 100644 --- a/.github/workflows/ansible-install.yml +++ b/.github/workflows/ansible-install.yml @@ -7,7 +7,7 @@ on: jobs: deploy: - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - name: Check out the codebase. uses: actions/checkout@v2 @@ -16,10 +16,10 @@ jobs: - name: Install OpenVPN run: | export DISTRO=$(lsb_release --codename | cut -f2) - sudo apt-get install -y apt-transport-https - mkdir -p ~/apt/keyrings - curl -sSfL https://packages.openvpn.net/packages-repo.gpg > ~/apt/keyrings/openvpn.asc - sudo echo "deb [signed-by=~/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" >> /etc/apt/sources.list.d/openvpn3.list + sudo apt-get install -y apt-transport-https curl + sudo mkdir -p /etc/apt/keyrings + sudo curl -sSfL https://packages.openvpn.net/packages-repo.gpg | sudo tee /etc/apt/keyrings/openvpn.asc + echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian DISTRIBUTION main" | sudo tee -a /etc/apt/sources.list.d/openvpn3.list sudo apt-get update -y && sudo apt-get install -y openvpn3 - name: Setup VPN config diff --git a/.github/workflows/ansible-updates.yml b/.github/workflows/ansible-updates.yml index 68ae3ca..168e567 100644 --- a/.github/workflows/ansible-updates.yml +++ b/.github/workflows/ansible-updates.yml @@ -15,10 +15,10 @@ jobs: - name: Install OpenVPN run: | export DISTRO=$(lsb_release --codename | cut -f2) - sudo apt-get install -y apt-transport-https - mkdir -p ~/apt/keyrings - curl -sSfL https://packages.openvpn.net/packages-repo.gpg > ~/apt/keyrings/openvpn.asc - sudo echo "deb [signed-by=~/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian $DISTRO main" >> /etc/apt/sources.list.d/openvpn3.list + sudo apt-get install -y apt-transport-https curl + sudo mkdir -p /etc/apt/keyrings + sudo curl -sSfL https://packages.openvpn.net/packages-repo.gpg | sudo tee /etc/apt/keyrings/openvpn.asc + echo "deb [signed-by=/etc/apt/keyrings/openvpn.asc] https://packages.openvpn.net/openvpn3/debian DISTRIBUTION main" | sudo tee -a /etc/apt/sources.list.d/openvpn3.list sudo apt-get update -y && sudo apt-get install -y openvpn3 - name: Setup VPN config