Just realized apt/repos.yml hasn't been getting run on Xenial testnodes.
There are some important tasks in there that should be run (e.g., Removing custom repos from
/etc/apt/sources.list.d).
We aren't using apt-mirror for Xenial so I've limited writing the master
sources.list to Trusty and earlier.
Signed-off-by: David Galloway <dgallowa@redhat.com>
mode: 0644
register: apt_prefs
+# Starting with ubuntu 15.04 we no longer maintain our own package mirrors.
+# For anything ubuntu < 15.04 or debian <=7 we still do.
- name: Add sources list
template:
dest: /etc/apt/sources.list
group: root
mode: 0644
register: sources
- when: ansible_architecture != "aarch64"
+ when: ansible_architecture != "aarch64" and
+ ansible_distribution_major_version|int < 15
- name: Install apt keys
apt_key:
---
-# Starting with ubuntu 15.04 we no longer maintain our own package mirrors.
-# For anything ubuntu < 15.04 or debian <=7 we still do.
- name: Setup local repo files.
include: apt/repos.yml
- when: ansible_distribution_major_version|int < 15
tags:
- repos