diff options
author | Oliver Smith <osmith@sysmocom.de> | 2022-02-07 16:51:22 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2022-02-09 12:54:29 +0100 |
commit | e9be03ca36f70a554ce5c2e980d765980e02931e (patch) | |
tree | 6f8210bb58ccdea8f16f814a81222cdef01a0c84 | |
parent | c4dca81d21ecb1f2db002ebf574ff187f0a7d5fa (diff) |
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
-rw-r--r-- | ansible/roles/apt-allow-relinfo-change/README.md | 12 | ||||
-rw-r--r-- | ansible/roles/apt-allow-relinfo-change/tasks/main.yml | 7 | ||||
-rw-r--r-- | ansible/setup-jenkins-slave.yml | 2 |
3 files changed, 21 insertions, 0 deletions
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: |