mKeRix/ansible-playbooks

Apt-get Update error on running playbook

stats2909 opened this issue · 0 comments

Hi, trying to deploy new config to a number of Room Assistant nodes using your ansible playbook to isolate/test potential bugs in the main app. I've followed you instructions (I think) and its worked so far, but now I'm getting the following error across all my nodes:

fatal: [HOSTNAME]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: 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'"}

Id tried an sudo apt-get update command outside of ansible and get the following:

Get:1 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details

I'm sure is something simple, I've had a dig around and whilst I kind of get whats happening, updating the playbook is beyond me and I don't want to mess with the nodes themselves without being sure on the impact of what I'm doing.

Any help to get round this would be hugely appreciated.

As always great work, love what this does! Thanks

EDITED: Hostname not showing in initial error message > updated to "HOSTNAME"