diff --git a/debian-to-pve.yml b/debian-to-pve.yml index 9061ee6..05808cc 100644 --- a/debian-to-pve.yml +++ b/debian-to-pve.yml @@ -11,5 +11,7 @@ when: ansible_facts.lsb.codename == "bullseye" - import_tasks: tasks/debian-general/repositories-bookworm.yml when: ansible_facts.lsb.codename == "bookworm" + - import_tasks: tasks/debian-general/repositories-trixie.yml + when: ansible_facts.lsb.codename == "trixie" - import_tasks: tasks/debian-to-pve/repositories.yml - import_tasks: tasks/debian-to-pve/pve-server.yml diff --git a/tasks/debian-general/repositories-trixie.yml b/tasks/debian-general/repositories-trixie.yml new file mode 100644 index 0000000..e9b9dab --- /dev/null +++ b/tasks/debian-general/repositories-trixie.yml @@ -0,0 +1,8 @@ +--- +- name: (Trixie) Ensure the correct Debian repositories are in place + ansible.builtin.copy: + dest: /etc/apt/sources.list + content: | + deb http://deb.debian.org/debian trixie main contrib non-free-firmware + deb http://deb.debian.org/debian trixie-updates main contrib non-free-firmware + deb http://security.debian.org/debian-security trixie-security main contrib non-free-firmware diff --git a/upgrade-debian.yml b/upgrade-debian.yml index 3a249cd..e2039e3 100644 --- a/upgrade-debian.yml +++ b/upgrade-debian.yml @@ -6,4 +6,6 @@ when: ansible_facts["lsb"]["codename"] == "bullseye" - import_tasks: tasks/debian-general/repositories-bookworm.yml when: ansible_facts["lsb"]["codename"] == "bookworm" + - import_tasks: tasks/debian-general/repositories-trixie.yml + when: ansible_facts.lsb.codename == "trixie" - import_tasks: tasks/debian-general/upgrade.yml