Apt-cacher-ng's default ubuntu mirror list has faulty mirrors

The top mirror(http://mirror.veracruz.co/ubuntu/) is currently broken.
We can override the defaults by editing the override file
(/etc/apt-cacher-ng/backends_ubuntu) with valid mirrors.

Change-Id: I35f7efa665030282c9630d7423413e8bd3628ba5
Closes-Bug: 1759903
This commit is contained in:
Shannon Mitchell 2018-03-29 12:27:01 -05:00
parent 7ff76c41b4
commit 1021a5b945

View File

@ -65,6 +65,16 @@
curl https://www.centos.org/download/full-mirrorlist.csv | sed 's/^.*"http:/http:/' | sed 's/".*$//' | grep ^http >/etc/apt-cacher-ng/centos_mirrors curl https://www.centos.org/download/full-mirrorlist.csv | sed 's/^.*"http:/http:/' | sed 's/".*$//' | grep ^http >/etc/apt-cacher-ng/centos_mirrors
echo "http://mirror.centos.org/centos/" >>/etc/apt-cacher-ng/centos_mirrors echo "http://mirror.centos.org/centos/" >>/etc/apt-cacher-ng/centos_mirrors
- name: override default ubuntu mirror list
copy:
dest: /etc/apt-cacher-ng/backends_ubuntu
mode: 0644
owner: root
group: root
content: 'http://archive.ubuntu.com/ubuntu/'
notify:
- reload acng
- name: Drop acng.conf - name: Drop acng.conf
template: template:
src: "pxe/acng.conf.j2" src: "pxe/acng.conf.j2"