diff --git a/roles/debian/files/debian.sources.13 b/roles/debian/files/debian.sources.13 new file mode 100644 index 0000000..c123a0a --- /dev/null +++ b/roles/debian/files/debian.sources.13 @@ -0,0 +1,11 @@ +Types: deb deb-src +URIs: http://deb.debian.org/debian +Suites: trixie trixie-updates +Components: main non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg + +Types: deb deb-src +URIs: http://security.debian.org/debian-security +Suites: trixie-security +Components: main non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg diff --git a/roles/debian/files/sources.list.10 b/roles/debian/files/sources.list.10 deleted file mode 100644 index 1c84348..0000000 --- a/roles/debian/files/sources.list.10 +++ /dev/null @@ -1,8 +0,0 @@ -deb http://deb.debian.org/debian/ buster main non-free contrib -deb-src http://deb.debian.org/debian/ buster main non-free contrib - -deb http://deb.debian.org/debian/ buster-updates main non-free contrib -deb-src http://deb.debian.org/debian/ buster-updates main non-free contrib - -deb http://deb.debian.org/debian-security/ buster/updates main non-free contrib -deb-src http://deb.debian.org/debian-security/ buster/updates main non-free contrib diff --git a/roles/debian/tasks/apt-sources.yml b/roles/debian/tasks/apt-sources.yml index 0ebe6d2..c731252 100644 --- a/roles/debian/tasks/apt-sources.yml +++ b/roles/debian/tasks/apt-sources.yml @@ -20,13 +20,6 @@ state: directory mode: '0755' -- name: Set APT sources.list for Debian 10 - become: true - ansible.builtin.copy: - src: sources.list.10 - dest: "/etc/apt/sources.list" - when: ansible_distribution_release == "buster" - - name: Set APT sources.list for Debian 11 become: true ansible.builtin.copy: @@ -50,6 +43,22 @@ create: yes when: ansible_distribution_release == "bookworm" +- name: Set APT debian.sources for Debian 13 + become: true + ansible.builtin.copy: + src: debian.sources.13 + dest: "/etc/apt/sources.list.d/debian.sources" + when: ansible_distribution_release == "trixie" + +- name: Empty /etc/apt/sources.list for Debian 13 + become: true + ansible.builtin.lineinfile: + path: /etc/apt/sources.list + regexp: ".*" + state: absent + create: yes + when: ansible_distribution_release == "trixie" + - name: Update APT cache become: true ansible.builtin.apt: