Failed to update apt cache: - error

Hi - I get the following error on a new Trellis set up:

TASK [mariadb : Add MariaDB PPA] ***********************************************


fatal: [default]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., E:The repository 'https://mirror.rackspace.com/mariadb/repo/10.6/ubuntu noble Release' does not have a Release file."}

Amending roles/mariadb/tasks/main.yml with this:


- name: Add MariaDB repository
  ansible.builtin.apt_repository:
    repo: "deb [arch=amd64,arm64,ppc64el] https://mirror.rackspace.com/mariadb/repo/10.6/ubuntu jammy main"
    state: present
    update_cache: yes

Resolves the error for me. May not be the best approach, but if it helps anyone, here it is; if there’s a better solution, please let me know