Rewrite CI provided apt sources to be http instead of https on bionic

Causes failure during LXC cache prep as the base image does not contain
ca-certificates and fails to apt-update.

Change-Id: I8db8e1d3f8a05b10848e189ca03a65de45354d7b
This commit is contained in:
Jonathan Rosser
2020-05-29 07:34:59 +01:00
parent 3fc02402f1
commit 465a1fea4f

View File

@@ -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 }}"