replace expired nginx key

This commit is contained in:
wh1te909 2024-06-24 05:51:36 +00:00
parent e76fa878d2
commit de0a69ede5
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

@ -244,7 +244,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

@ -138,7 +138,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

@ -167,7 +167,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