Commit b68b3f17 authored by Thomas Gambier's avatar Thomas Gambier

Use https URL in Debian 10 and use http URL for old Ubuntu versions

fixup of 0619932c (keep using insecure
http repository for debian 8, 9 and 10)
parent a34b0692
Pipeline #24361 failed with stage
in 0 seconds
......@@ -6,7 +6,8 @@
- name: Force HTTP repository for old debian versions without HTTPS support
set_fact:
base_open_build_url: "{{ base_open_build_url_http }}"
when: ansible_distribution == 'Debian' and ansible_distribution_major_version in ("8", "9", "10")
when: (ansible_distribution == "Debian" and ansible_distribution_major_version|int < 10) or
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int < 18)
- name: Remove {{ base_open_build_url }} key (and add later) on every upgrade, as expiration date is quite short (2 months).
apt_key: id=94A63987 state=absent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment