ansible/setup-jenkins-slave: accept rel-change

Fix for:
  W:This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
  E:Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'

Related: https://github.com/ansible/ansible/issues/48352
Change-Id: I90ee8dd49001d6810f2118e9feff3375e87052ea
This commit is contained in:
Oliver Smith 2022-02-07 16:51:22 +01:00
parent 6695a91c0b
commit f07b5c8a64
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
---
When the suite of one debian release changes from stable to oldstable, apt
stops working with the following error:
```
W:This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E:Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
```
This role configures apt to allow the release info change.
Related: https://github.com/ansible/ansible/issues/48352

View File

@ -0,0 +1,7 @@
---
- name: "configure to allow release info change"
lineinfile:
path: /etc/apt/apt.conf.d/99relinfochange
state: present
create: yes
line: Acquire::AllowReleaseInfoChange::Suite "true";

View File

@ -15,6 +15,8 @@
cache_valid_time: 3600
update_cache: yes
roles:
- name: apt-allow-relinfo-change
- name: docker
jenkins_user: osmocom-build
tags: