ansible-role-nginx/tasks/keys/apt-key.yml

15 lines
495 B
YAML
Raw Normal View History

2018-01-10 23:40:01 +01:00
---
2019-02-19 16:30:10 +01:00
- name: "(Install: APT OSs) Set Default APT NGINX Signing Key URL"
set_fact:
default_keysite: >-
{{ (ansible_distribution_release == 'trusty')
| ternary('http://nginx.org/keys/nginx_signing.key', 'https://nginx.org/keys/nginx_signing.key') }}
- name: "(Install: APT OSs) Set APT NGINX Signing Key URL"
set_fact:
2019-02-19 16:30:10 +01:00
keysite: "{{ nginx_signing_key | default(default_keysite) }}"
- name: "(Install: APT OSs) Add APT NGINX Signing Key"
2018-01-10 23:40:01 +01:00
apt_key:
2019-02-19 16:30:10 +01:00
url: "{{ keysite }}"