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" - name: "(Install: APT OSs) Add APT NGINX Signing Key"
apt_key: apt_key:
id: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 url: "{{ 'http://nginx.org/keys/nginx_signing.key' | default('https://nginx.org/keys/nginx_signing.key') }}"
keyserver: "{{ 'hkp://p80.pool.sks-keyservers.net:80' | default('hkps://hkps.pool.sks-keyservers.net:443') }}"

View File

@ -1,4 +1,4 @@
--- ---
- name: "(Install: RPM OSs) Add RPM NGINX Signing Key" - name: "(Install: RPM OSs) Add RPM NGINX Signing Key"
rpm_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') }}"