Commit 201989cf authored by Łukasz Nowak's avatar Łukasz Nowak

playbook: Fix Debian 9 repository information

As currently Debian 9 key on OBS is not valid, we need to update apt
information with allowing insecure repositories.

Even if repository role uses debian9-aptconf as dependency, it does not
update repository information *after* adding the repository. So just
update it.
parent 8da6c799
......@@ -36,6 +36,10 @@
apt_repository: repo='deb {{ base_open_build_url }}/Debian_9.0/ ./' state=present update_cache=no
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "9"
- name: Update repos for debian 9
shell: apt update --allow-insecure-repositories
when: (ansible_distribution == "Debian" and ansible_distribution_major_version == "9") or (ansible_distribution == "Ubuntu" and ansible_distribution_major_version == "17")
- name: Install Debian 8 repository
apt_repository: repo='deb {{ base_open_build_url }}/Debian_8.0/ ./' state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
......
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