ansible-role-nginx/tasks/keys/rpm-key.yml
Alessandro Fael Garcia c1c3a372d7
Allow setting a custom apt and rpm signing key host (#84)
* Allow setting a custom apt and rpm signing key host

* Change default fallback key to https

* Use facts to determine which signing key to use

* Add single quotes
2019-01-09 00:26:14 +01:00

9 lines
313 B
YAML

---
- name: "(Install: RPM OSs) Set RPM NGINX Signing Key URL"
set_fact:
keysite: "{{ nginx_signing_key | default('http://nginx.org/keys/nginx_signing.key') }}"
- name: "(Install: RPM OSs) Add RPM NGINX Signing Key"
rpm_key:
key: "{{ keysite | default('https://nginx.org/keys/nginx_signing.key') }}"