Initial
This commit is contained in:
17
roles/nginxinc.nginx_unit/tasks/keys/setup-keys.yml
Normal file
17
roles/nginxinc.nginx_unit/tasks/keys/setup-keys.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: (Debian/Red Hat OSs) Set up NGINX signing key URL
|
||||
set_fact:
|
||||
keysite: "{{ nginx_unit_signing_key | default(nginx_unit_default_signing_key) }}"
|
||||
|
||||
- name: (Debian/Ubuntu) Add NGINX signing key
|
||||
apt_key:
|
||||
id: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
|
||||
url: "{{ keysite }}"
|
||||
when: ansible_facts['os_family'] == "Debian"
|
||||
|
||||
- name: (Amazon Linux/CentOS/RHEL) Add NGINX signing key
|
||||
rpm_key:
|
||||
fingerprint: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
|
||||
key: "{{ keysite }}"
|
||||
validate_certs: "{{ (ansible_facts['distribution_major_version'] is version('6', '==')) | ternary('no', 'yes') }}"
|
||||
when: ansible_facts['os_family'] in ['RedHat', 'Suse']
|
Reference in New Issue
Block a user