31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
---
|
|
- name: (Alpine Linux) Set up signing key
|
|
block:
|
|
- name: (Alpine Linux) Set up NGINX signing key URL
|
|
set_fact:
|
|
keysite: "{{ nginx_signing_key | default(nginx_default_signing_key_rsa_pub) }}"
|
|
|
|
- name: (Alpine Linux) Download NGINX signing key
|
|
get_url:
|
|
url: "{{ keysite }}"
|
|
dest: /etc/apk/keys/nginx_signing.rsa.pub
|
|
mode: 0400
|
|
when: ansible_facts['os_family'] == "Alpine"
|
|
|
|
- name: (Debian/Red Hat/SLES OSs) Set up NGINX signing key URL
|
|
set_fact:
|
|
keysite: "{{ nginx_signing_key | default(nginx_default_signing_key_pgp) }}"
|
|
when: ansible_facts['os_family'] != "Alpine"
|
|
|
|
- name: (Debian/Ubuntu) Add NGINX signing key
|
|
apt_key:
|
|
id: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
|
|
url: "{{ keysite }}"
|
|
when: ansible_facts['os_family'] == "Debian"
|
|
|
|
- name: (Amazon Linux/CentOS/Oracle Linux/RHEL/SLES) Add NGINX signing key
|
|
rpm_key:
|
|
fingerprint: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
|
|
key: "{{ keysite }}"
|
|
when: ansible_facts['os_family'] in ['RedHat', 'Suse']
|