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
This commit is contained in:
Clark Boylan 2022-10-27 10:58:39 -07:00
parent bfdc69b90e
commit 99d3b3e966
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
APT::Get::Always-Include-Phased-Updates "true";

View File

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