From e98829e1eae8d04dba31a6960516d5177d6a2d36 Mon Sep 17 00:00:00 2001 From: Doug Holt Date: Tue, 1 Sep 2026 14:31:00 -0600 Subject: [PATCH] fix: diagnose and fix the 26.09 maas smoke failure --- roles/maas-controller/tasks/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/maas-controller/tasks/main.yml b/roles/maas-controller/tasks/main.yml index 85e7ad55e..3fd7e9922 100644 --- a/roles/maas-controller/tasks/main.yml +++ b/roles/maas-controller/tasks/main.yml @@ -9,7 +9,15 @@ - name: add MAAS repository apt_repository: - repo: "{{ maas_repo }}" + # MAAS 3.5 has no Noble repository. Normalize the legacy override used by + # existing automation while preserving custom repositories. + repo: >- + {{ + 'ppa:maas/3.7' + if ansible_distribution_version is version('24.04', '>=') + and maas_repo == 'ppa:maas/3.5' + else maas_repo + }} state: present - name: install MAAS