Commit 00f70c3d authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

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.

/reviewed-on !42
parent dc4e89f6
......@@ -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