Skip to content

Commit

Permalink
use tee commands for sudo.
Browse files Browse the repository at this point in the history
  • Loading branch information
cguertin14 committed Dec 16, 2024
1 parent f577372 commit 5337103
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ansible-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ansible-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5337103

Please sign in to comment.