Always fallback from a hkps to a hkp keyserver

This commit is contained in:
Alessandro Fael Garcia 2018-11-14 12:43:41 -08:00
parent 71f4eb3605
commit d0e6512b12

View File

@ -1,9 +1,5 @@
--- ---
- set_fact: fallback_keyserver='hkp://p80.pool.sks-keyservers.net:80'
when: (ansible_distribution == 'Debian' and ansible_distribution_release in ['jessie', 'stretch']) or
(ansible_distribution == 'Ubuntu' and ansible_distribution_release in ['trusty', 'xenial'])
- name: "(Install: APT OSs) Add APT NGINX Signing Key" - name: "(Install: APT OSs) Add APT NGINX Signing Key"
apt_key: apt_key:
id: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 id: 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
keyserver: "{{ fallback_keyserver | default('hkps://hkps.pool.sks-keyservers.net:443') }}" keyserver: "{{ 'hkp://p80.pool.sks-keyservers.net:80' | default('hkps://hkps.pool.sks-keyservers.net:443') }}"