ansible-role-nginx/tasks/keys/apt-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: APT OSs) Set APT NGINX Signing Key URL"
set_fact:
keysite: "{{ nginx_signing_key | default('http://nginx.org/keys/nginx_signing.key') }}"
- name: "(Install: APT OSs) Add APT NGINX Signing Key"
apt_key:
url: "{{ keysite | default('https://nginx.org/keys/nginx_signing.key') }}"