From 16911213fc600b10784875daa47fd51d6a54fddc Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sun, 22 Jan 2023 17:19:40 +0000 Subject: [PATCH] Set sources.list on Debian 12 --- roles/debian/tasks/apt-sources.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/debian/tasks/apt-sources.yml b/roles/debian/tasks/apt-sources.yml index 164a7bf..4082de3 100644 --- a/roles/debian/tasks/apt-sources.yml +++ b/roles/debian/tasks/apt-sources.yml @@ -19,12 +19,21 @@ src: sources.list.10 dest: "/etc/apt/sources.list" when: ansible_distribution_version == "10" + - name: Set APT sources.list for Debian 11 become: true ansible.builtin.copy: src: sources.list.11 dest: "/etc/apt/sources.list" when: ansible_distribution_version == "11" + +- name: Set APT sources.list for Debian 12 + become: true + ansible.builtin.copy: + src: sources.list.12 + dest: "/etc/apt/sources.list" + when: ansible_distribution_version == "12" + - name: Update APT cache become: true ansible.builtin.apt: