proxmox: switch to deb822 source format

Debian did, Proxmox did, now we did too. Also enable ceph repository
if ceph-version is set in config context.
This commit is contained in:
Timotej Lazar 2025-08-12 19:12:32 +02:00
parent 937c75e097
commit 59c1431f93
2 changed files with 34 additions and 17 deletions

View file

@ -0,0 +1,33 @@
- name: Disable enterprise repositories
deb822_repository:
name: pve-enterprise
state: absent
notify: update package cache
- name: Enable no-subscription repositories
deb822_repository:
name: proxmox
uris: http://download.proxmox.com/debian/pve
suites: "{{ ansible_distribution_release }}"
components: pve-no-subscription
signed_by: /usr/share/keyrings/proxmox-archive-keyring.gpg
notify: update package cache
- name: Disable ceph repositories if not needed
when: "'ceph-version' not in hostvars[inventory_hostname]"
deb822_repository:
name: ceph
state: absent
notify: update package cache
- name: Enable no-subscription ceph repositories
when: "'ceph-version' in hostvars[inventory_hostname]"
deb822_repository:
name: ceph
uris: "http://download.proxmox.com/debian/ceph-{{ hostvars[inventory_hostname]['ceph-version'] }}"
suites: "{{ ansible_distribution_release }}"
components: no-subscription
signed_by: /usr/share/keyrings/proxmox-archive-keyring.gpg
notify: update package cache
- meta: flush_handlers