From 99d3b3e966d736eaee480954f67cb1d6e830cffc Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 27 Oct 2022 10:58:39 -0700 Subject: [PATCH] Don't install phased package updates with apt Newer apt supports phased updates. These updates mean a subset of servers will pull newly available packages. There are potentially good reasons for this like A/B testing and spreading out load for package updates. The problem is that it can create confusing situations when packages are not consistent when we expect them to be. Avoid this confusion by always installing the latest available packages. Change-Id: I995070823bc2456547ba9d2023d3de7e5d9b6810 --- playbooks/roles/base/repos/files/95phased-updates | 1 + playbooks/roles/base/repos/tasks/Debian.yaml | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 playbooks/roles/base/repos/files/95phased-updates diff --git a/playbooks/roles/base/repos/files/95phased-updates b/playbooks/roles/base/repos/files/95phased-updates new file mode 100644 index 0000000000..76fd5e1fac --- /dev/null +++ b/playbooks/roles/base/repos/files/95phased-updates @@ -0,0 +1 @@ +APT::Get::Always-Include-Phased-Updates "true"; diff --git a/playbooks/roles/base/repos/tasks/Debian.yaml b/playbooks/roles/base/repos/tasks/Debian.yaml index 9dff540e0b..b0d62bdb85 100644 --- a/playbooks/roles/base/repos/tasks/Debian.yaml +++ b/playbooks/roles/base/repos/tasks/Debian.yaml @@ -20,6 +20,12 @@ src: 90no-translations dest: /etc/apt/apt.conf.d/90no-translations +- name: Always install latest packages + copy: + mode: 0444 + src: 95phased-updates + dest: /etc/apt/apt.conf.d/95phased-updates + - name: Replace sources.list file copy: src: 'sources.list.{{ ansible_facts.lsb.codename }}.{{ ansible_facts.architecture }}'