58 lines
2.0 KiB
YAML

---
# Proxmox VE 8.x (Debian 12 / bookworm) sources and repo configuration
- name: "Configure Debian bookworm APT sources (if enabled)"
ansible.builtin.copy:
dest: /etc/apt/sources.list
owner: root
group: root
mode: '0644'
content: |
deb http://deb.debian.org/debian bookworm main contrib
deb http://deb.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org/debian-security bookworm-security main contrib
when: proxmox_fix_sources
- name: "Disable pve-enterprise repository (list file) on 8.x"
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pve-enterprise.list
owner: root
group: root
mode: '0644'
content: |
# deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
when: proxmox_disable_pve_enterprise
- name: "Enable pve-no-subscription repository on 8.x"
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pve-install-repo.list
owner: root
group: root
mode: '0644'
content: |
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
when: proxmox_enable_pve_no_subscription
- name: "Configure Ceph repositories for Proxmox VE 8.x"
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/ceph.list
owner: root
group: root
mode: '0644'
content: |
# deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
# deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
# deb https://enterprise.proxmox.com/debian/ceph-reef bookworm enterprise
# deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription
when: proxmox_fix_ceph_repos
- name: "Add disabled pvetest repository for 8.x"
ansible.builtin.copy:
dest: /etc/apt/sources.list.d/pvetest-for-beta.list
owner: root
group: root
mode: '0644'
content: |
# deb http://download.proxmox.com/debian/pve bookworm pvetest
when: proxmox_add_pvetest_repo_disabled