2026-02-07 08:29:45 +01:00
|
|
|
---
|
2026-02-08 08:04:32 +01:00
|
|
|
- name: Comment out Proxmox enterprise repo lines
|
|
|
|
|
ansible.builtin.replace:
|
|
|
|
|
path: /etc/apt/sources.list.d/pve-enterprise.list
|
|
|
|
|
regexp: '^(deb\s+)'
|
|
|
|
|
replace: '# \1'
|
|
|
|
|
when: ansible.builtin.stat(path='/etc/apt/sources.list.d/pve-enterprise.list').stat.exists
|
|
|
|
|
notify: apt update
|
2026-02-07 08:29:45 +01:00
|
|
|
|
2026-02-07 08:45:57 +01:00
|
|
|
- name: repos | Enable Proxmox no-subscription repo
|
|
|
|
|
ansible.builtin.copy:
|
2026-02-07 08:29:45 +01:00
|
|
|
dest: /etc/apt/sources.list.d/pve-no-subscription.list
|
2026-02-07 09:19:12 +01:00
|
|
|
owner: root
|
|
|
|
|
group: root
|
|
|
|
|
mode: "0644"
|
2026-02-07 08:29:45 +01:00
|
|
|
content: |
|
|
|
|
|
deb http://download.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-no-subscription
|
|
|
|
|
notify: apt update
|