Problem
When trying to provision the VMs in this repository by running the vagrant up command, I encountered the following error:
Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable
This is due to a repository codename change. In order to avoid this error, the --allow-releaseinfo-change flag must be used when installing/updating packages.
Solution
Since there currently is no way in the documentation to force --allow-releaseinfo-change through the ansible apt module, a workaround is to add this step beforehand:
- name: Allow release-info to change for APT repositories
command: apt-get update -y --allow-releaseinfo-change
Reference: ansible/ansible#48352 (comment)