osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/27151 )
Change subject: ansible/setup-jenkins-slave: accept rel-change ......................................................................
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 --- A ansible/roles/apt-allow-relinfo-change/README.md A ansible/roles/apt-allow-relinfo-change/tasks/main.yml M ansible/setup-jenkins-slave.yml 3 files changed, 21 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/51/27151/1
diff --git a/ansible/roles/apt-allow-relinfo-change/README.md b/ansible/roles/apt-allow-relinfo-change/README.md new file mode 100644 index 0000000..cd00a46 --- /dev/null +++ b/ansible/roles/apt-allow-relinfo-change/README.md @@ -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 diff --git a/ansible/roles/apt-allow-relinfo-change/tasks/main.yml b/ansible/roles/apt-allow-relinfo-change/tasks/main.yml new file mode 100644 index 0000000..098f5ee --- /dev/null +++ b/ansible/roles/apt-allow-relinfo-change/tasks/main.yml @@ -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"; diff --git a/ansible/setup-jenkins-slave.yml b/ansible/setup-jenkins-slave.yml index 07414aa..05e3bde 100644 --- a/ansible/setup-jenkins-slave.yml +++ b/ansible/setup-jenkins-slave.yml @@ -15,6 +15,8 @@ cache_valid_time: 3600 update_cache: yes roles: + - name: apt-allow-relinfo-change + - name: docker jenkins_user: osmocom-build tags: