replace expired nginx key

This commit is contained in:
wh1te909 2024-06-24 05:51:36 +00:00
parent 0235dadbf7
commit 5bf5065d9a
4 changed files with 4 additions and 4 deletions

View File

@ -329,7 +329,7 @@
tags: nginx
become: yes
ansible.builtin.apt_key:
url: https://nginx.org/packages/keys/nginx_signing.key
url: https://nginx.org/keys/nginx_signing.key
state: present
- name: add nginx repo

View File

@ -246,7 +246,7 @@ print_green 'Installing Nginx'
sudo mkdir -p /etc/apt/keyrings
wget -qO - https://nginx.org/packages/keys/nginx_signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/nginx-archive-keyring.gpg
wget -qO - https://nginx.org/keys/nginx_signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/nginx-archive-keyring.gpg
nginxrepo="$(
cat <<EOF

View File

@ -140,7 +140,7 @@ sudo npm install -g npm
print_green 'Restoring Nginx'
wget -qO - https://nginx.org/packages/keys/nginx_signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/nginx-archive-keyring.gpg
wget -qO - https://nginx.org/keys/nginx_signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/nginx-archive-keyring.gpg
nginxrepo="$(
cat <<EOF

View File

@ -197,7 +197,7 @@ deb [signed-by=/etc/apt/keyrings/nginx-archive-keyring.gpg] http://nginx.org/pac
EOF
)"
echo "${nginxrepo}" | sudo tee /etc/apt/sources.list.d/nginx.list >/dev/null
wget -qO - https://nginx.org/packages/keys/nginx_signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/nginx-archive-keyring.gpg
wget -qO - https://nginx.org/keys/nginx_signing.key | sudo gpg --dearmor -o /etc/apt/keyrings/nginx-archive-keyring.gpg
sudo apt update
sudo apt install -y nginx
fi