updated debian-to-pbs to bookworm (debian 12)

This commit is contained in:
Bryan Joshua Pedini 2024-09-26 14:57:11 +02:00
parent 99b5e5a46e
commit 174b19deb3
3 changed files with 23 additions and 1 deletions

View File

@ -8,6 +8,13 @@
- import_tasks: tasks/debian-general/hostname.yml - import_tasks: tasks/debian-general/hostname.yml
- import_tasks: tasks/debian-general/hosts-file.yml - import_tasks: tasks/debian-general/hosts-file.yml
- import_tasks: tasks/debian-general/repositories-bullseye.yml - import_tasks: tasks/debian-general/repositories-bullseye.yml
- import_tasks: tasks/debian-to-pbs/repositories.yml 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/upgrade.yml
- import_tasks: tasks/debian-to-pbs/repositories-bullseye.yml
when: ansible_facts["lsb"]["codename"] == "bullseye"
- import_tasks: tasks/debian-to-pbs/repositories-bookworm.yml
when: ansible_facts["lsb"]["codename"] == "bookworm"
- import_tasks: tasks/debian-general/upgrade.yml - import_tasks: tasks/debian-general/upgrade.yml
- import_tasks: tasks/debian-to-pbs/pbs-server.yml - import_tasks: tasks/debian-to-pbs/pbs-server.yml

View File

@ -0,0 +1,15 @@
---
- name: Ensure the PBS Enterprise respository is disabled
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-enterprise.list
content: |
#deb https://enterprise.proxmox.com/debian/pbs bookworm pbs-enterprise
- name: Ensure the correct Proxmox repositories are in place
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pbs-no-subscription.list
content: |
deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription
- name: Ensure the Proxmox signing GPG key is present
ansible.builtin.get_url:
dest: /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg
url: https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg