Skip to content

Commit

Permalink
Rewrite CI provided apt sources to be http instead of https on bionic
Browse files Browse the repository at this point in the history
Causes failure during LXC cache prep as the base image does not contain
ca-certificates and fails to apt-update.

Change-Id: I8db8e1d3f8a05b10848e189ca03a65de45354d7b
  • Loading branch information
Jonathan Rosser committed May 29, 2020
1 parent 3fc0240 commit 465a1fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zuul.d/playbooks/pre-gate-cleanup.yml
Expand Up @@ -24,6 +24,14 @@
- name: Gather variables for each operating system
include_vars: "{{ ansible_os_family | lower }}.yml"

- name: Switch apt source from https to http
replace:
path: /etc/apt/sources.list
regexp: 'https'
replace: "http"
when:
- ansible_distribution_release in ['bionic']

- name: Remove known problem distro packages
package:
name: "{{ gate_packages_remove }}"
Expand Down

0 comments on commit 465a1fe

Please sign in to comment.