Skip to content

Commit 51bcad6

Browse files
authored
Fix an error caused by docker/docker-py#3113 (notthebee#180)
Fixes notthebee#179
1 parent 9dbef08 commit 51bcad6

File tree

6 files changed

+10
-52
lines changed

6 files changed

+10
-52
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ on:
2424
type: boolean
2525
default: false
2626

27-
only_rocky_8:
28-
description: "Only run on Rocky 8"
29-
required: false
30-
type: boolean
31-
default: false
32-
33-
only_rocky_9:
34-
description: "Only run on Rocky 9"
35-
required: false
36-
type: boolean
37-
default: false
38-
3927
manual_mode:
4028
description: "Don't destroy the server after the setup is complete"
4129
required: false
@@ -82,12 +70,6 @@ jobs:
8270
elif [[ ${ONLY_DEBIAN_11} == 'true' ]]; then
8371
# Only deploy on Debian 11, don't use Letsencrypt Staging
8472
matrix=$(jq 'map(. | select((.os=="debian-11")) )' .github/workflows/matrix_includes.json)
85-
elif [[ ${ONLY_ROCKY_8} == 'true' ]]; then
86-
# Only deploy on Rocky 8, don't use Letsencrypt Staging
87-
matrix=$(jq 'map(. | select((.os=="rocky-8")) )' .github/workflows/matrix_includes.json)
88-
elif [[ ${ONLY_ROCKY_9} == 'true' ]]; then
89-
# Only deploy on Rocky 9, don't use Letsencrypt Staging
90-
matrix=$(jq 'map(. | select((.os=="rocky-9")) )' .github/workflows/matrix_includes.json)
9173
else
9274
# Deploy on all supported OSes, use Letsencrypt Staging to avoid rate-limiting
9375
matrix=$(jq 'map(.)' .github/workflows/matrix_includes.json)
@@ -98,8 +80,6 @@ jobs:
9880
ONLY_UBUNTU_22: ${{ inputs.only_ubuntu_22 }}
9981
ONLY_UBUNTU_20: ${{ inputs.only_ubuntu_20 }}
10082
ONLY_DEBIAN_11: ${{ inputs.only_debian_11 }}
101-
ONLY_ROCKY_8: ${{ inputs.only_rocky_8 }}
102-
ONLY_ROCKY_9: ${{ inputs.only_rocky_9 }}
10383

10484
build:
10585
runs-on: ubuntu-latest
@@ -141,14 +121,6 @@ jobs:
141121
echo "EASYVPN_USERNAME_3=$EASYVPN_USERNAME" >> $GITHUB_OUTPUT
142122
echo "EASYVPN_PASSWORD_3=$EASYVPN_PASSWORD" >> $GITHUB_OUTPUT
143123
;;
144-
"4")
145-
echo "EASYVPN_USERNAME_4=$EASYVPN_USERNAME" >> $GITHUB_OUTPUT
146-
echo "EASYVPN_PASSWORD_4=$EASYVPN_PASSWORD" >> $GITHUB_OUTPUT
147-
;;
148-
"5")
149-
echo "EASYVPN_USERNAME_5=$EASYVPN_USERNAME" >> $GITHUB_OUTPUT
150-
echo "EASYVPN_PASSWORD_5=$EASYVPN_PASSWORD" >> $GITHUB_OUTPUT
151-
;;
152124
*)
153125
exit 1
154126
;;
@@ -183,12 +155,6 @@ jobs:
183155
matrix.os == 'ubuntu-22.04' ||
184156
matrix.os == 'ubuntu-20.04'
185157
186-
- name: Install git and expect (CentOS 8 and 9)
187-
run: ssh root@$SERVER_IPV4 dnf install -y git expect words
188-
if: |
189-
matrix.os == 'rocky-8' ||
190-
matrix.os == 'rocky-9'
191-
192158
- uses: infraway/[email protected]
193159
with:
194160
type: "A"
@@ -271,13 +237,9 @@ jobs:
271237
EASYVPN_USERNAME_1: "${{ steps.random_username.outputs.EASYVPN_USERNAME_1 }}"
272238
EASYVPN_USERNAME_2: "${{ steps.random_username.outputs.EASYVPN_USERNAME_2 }}"
273239
EASYVPN_USERNAME_3: "${{ steps.random_username.outputs.EASYVPN_USERNAME_3 }}"
274-
EASYVPN_USERNAME_4: "${{ steps.random_username.outputs.EASYVPN_USERNAME_4 }}"
275-
EASYVPN_USERNAME_5: "${{ steps.random_username.outputs.EASYVPN_USERNAME_5 }}"
276240
EASYVPN_PASSWORD_1: "${{ steps.random_username.outputs.EASYVPN_PASSWORD_1 }}"
277241
EASYVPN_PASSWORD_2: "${{ steps.random_username.outputs.EASYVPN_PASSWORD_2 }}"
278242
EASYVPN_PASSWORD_3: "${{ steps.random_username.outputs.EASYVPN_PASSWORD_3 }}"
279-
EASYVPN_PASSWORD_4: "${{ steps.random_username.outputs.EASYVPN_PASSWORD_4 }}"
280-
EASYVPN_PASSWORD_5: "${{ steps.random_username.outputs.EASYVPN_PASSWORD_5 }}"
281243

282244
test:
283245
runs-on: ubuntu-latest

.github/workflows/matrix_includes.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,5 @@
1010
{
1111
"os":"debian-11",
1212
"index":3
13-
},
14-
{
15-
"os":"rocky-8",
16-
"index":4
17-
},
18-
{
19-
"os":"rocky-9",
20-
"index":5
2113
}
2214
]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ wget https://raw.githubusercontent.com/notthebee/ansible-easy-vpn/main/bootstrap
2727
* Ubuntu Server 22.04
2828
* Ubuntu Server 20.04
2929
* Debian 11
30-
* Rocky Linux 9
31-
* Rocky Linux 8
30+
* ~~Rocky Linux 8~~ – not supported anymore
31+
* ~~Rocky Linux 9~~ - not supported anymore
3232

3333
## Known issues with VPS providers
3434
Normally, the script should work on any KVM-based VPS.

bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ if [[ "$launch_playbook" =~ ^[yY]$ ]]; then
423423
cd $HOME/ansible-easy-vpn && ansible-playbook run.yml
424424
fi
425425
else
426-
echo "You can run the playbook by executing the following command"
427-
echo "cd ${HOME}/ansible-easy-vpn && ansible-playbook run.yml"
426+
echo "You can run the playbook by executing this script again"
427+
echo "cd ${HOME}/ansible-easy-vpn && bash bootstrap.sh"
428428
exit
429429
fi

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cryptography<=36.0.2
22
pyOpenSSL<=20.0.1
33
certbot
4-
requests
4+
requests<2.29.2
55
passlib
66
bcrypt
77
wheel

roles/system/tasks/user.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@
5353
dest: "/home/{{ username }}"
5454

5555
- name: Fix the user's venv copy
56+
tags:
57+
- skip_ansible_lint # risky-pipe-shell confuses sed separators for pipes
5658
changed_when: true
5759
ansible.builtin.shell:
58-
cmd: 'cd /home/{{ username }}/ansible-easy-vpn/.venv/bin && sed -i "s|/root/ansible-easy-vpn|/home/{{ username }}/ansible-easy-vpn|g" *'
60+
cmd: >-
61+
cd /home/{{ username }}/ansible-easy-vpn/.venv/bin &&
62+
sed -i "s|/root/ansible-easy-vpn|/home/{{ username }}/ansible-easy-vpn|g" *
5963
6064
- name: Chmod the ansible-easy-vpn directory
6165
ansible.builtin.file:

0 commit comments

Comments
 (0)