replace expired nginx key
This commit is contained in:
parent
e76fa878d2
commit
de0a69ede5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue