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

15 lines
494 B
YAML
Raw Normal View History

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