fix(apt): Update Debian repo handling for Debian 13
We're now using the built-in deb822_repository module to handle Debian package repositories. We no longer need individual yml files per repo and instead perform just one loop call of the deb822_repository module. We also update repo content to Proxmox VE 9 and Debian 13.
This commit is contained in:
18
tasks/repos.yml
Normal file
18
tasks/repos.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
- name: 'Set correct repositories'
|
||||
loop_control:
|
||||
loop_var: 'repo'
|
||||
index_var: 'i'
|
||||
label: 'Make sure the ''{{ repo.name }}.source'' repo file is {% if repo.state == ''absent'' %}absent{% else %}present ({% if repo.enabled %}and enabled{% else %}but disabled{% endif %}){% endif %}, this has the {{ repo.description }}'
|
||||
loop: '{{ deb822_repos }}'
|
||||
ansible.builtin.deb822_repository:
|
||||
name: '{{ repo.name }}'
|
||||
enabled: '{{ repo.enabled }}'
|
||||
state: '{{ repo.state | default(''present'') }}'
|
||||
types: '{{ repo.types }}'
|
||||
uris: '{{ repo.uris }}'
|
||||
suites: '{{ repo.suites }}'
|
||||
components: '{{ repo.components }}'
|
||||
signed_by: '{{ repo.signed_by }}'
|
||||
notify:
|
||||
- 'apt-get update'
|
Reference in New Issue
Block a user