Commit 0619932c authored by Jérome Perrin's avatar Jérome Perrin

keep using insecure http repository for debian 8, 9 and 10

we use https only starting from debian 11
parent 44efa787
--- ---
base_open_build_url: https://download.opensuse.org/repositories/home:/VIFIBnexedi/ base_open_build_url: https://download.opensuse.org/repositories/home:/VIFIBnexedi/
base_open_build_url_http: http://download.opensuse.org/repositories/home:/VIFIBnexedi/
is_ubuntu: "'{{ ansible_distribution }}' == 'Ubuntu'" is_ubuntu: "'{{ ansible_distribution }}' == 'Ubuntu'"
is_debian: "'{{ ansible_distribution }}' == 'Debian'" is_debian: "'{{ ansible_distribution }}' == 'Debian'"
......
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
- include: debian_init.yml - include: debian_init.yml
- 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")
- name: Remove {{ base_open_build_url }} key (and add later) on every upgrade, as expiration date is quite short (2 months). - 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 apt_key: id=94A63987 state=absent
when: ansible_distribution == "Debian" when: ansible_distribution == "Debian"
......
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