This commit updates the Proxmox repository configuration to include specific file permissions and ownership settings. This ensures that the repository is properly secured and accessible by authorized users. ✔ Explicit ownership ✔ Explicit permissions ✔ Idempotent
19 lines
559 B
YAML
19 lines
559 B
YAML
---
|
|
- name: repos | Remove enterprise repo files (all known locations)
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: absent
|
|
loop:
|
|
- /etc/apt/sources.list.d/pve-enterprise.list
|
|
- /etc/apt/sources.list.d/ceph.list
|
|
|
|
- name: repos | Enable Proxmox no-subscription repo
|
|
ansible.builtin.copy:
|
|
dest: /etc/apt/sources.list.d/pve-no-subscription.list
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
content: |
|
|
deb http://download.proxmox.com/debian/pve {{ ansible_distribution_release }} pve-no-subscription
|
|
notify: apt update
|