Use url parameter instead of id and keyserver

This commit is contained in:
Alessandro Fael Garcia 2018-11-14 13:29:37 -08:00
parent d0e6512b12
commit af4450a8d5
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
---
- name: "(Install: APT OSs) Add APT NGINX Signing Key"
apt_key:
id: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
keyserver: "{{ 'hkp://p80.pool.sks-keyservers.net:80' | default('hkps://hkps.pool.sks-keyservers.net:443') }}"
url: "{{ 'http://nginx.org/keys/nginx_signing.key' | default('https://nginx.org/keys/nginx_signing.key') }}"

View File

@ -1,4 +1,4 @@
---
- name: "(Install: RPM OSs) Add RPM NGINX Signing Key"
rpm_key:
key: "{{ (ansible_os_family == 'RedHat' and ansible_distribution_major_version|int == 6) | ternary('http://nginx.org/keys/nginx_signing.key', 'https://nginx.org/keys/nginx_signing.key') }}"
key: "{{ 'http://nginx.org/keys/nginx_signing.key' | default('https://nginx.org/keys/nginx_signing.key') }}"