✨ add support for debian 13 trixie
This commit is contained in:
parent
7fa4e25670
commit
d881ab0eba
4 changed files with 41 additions and 15 deletions
|
@ -1,20 +1,13 @@
|
|||
- name: install backports apt list
|
||||
template:
|
||||
src: backports.list.j2
|
||||
dest: /etc/apt/sources.list.d/backports.list
|
||||
# do this from a template to fully remove any other lines in the file.
|
||||
- fail:
|
||||
msg: "only supported on debian"
|
||||
when: not ansible_distribution in ["Debian"]
|
||||
|
||||
|
||||
- name: remove obsolete apt lists
|
||||
file: path=/etc/apt/sources.list.d/{{ item }}-backports.list state=absent
|
||||
with_items:
|
||||
- jessie
|
||||
- stretch
|
||||
- name: remove obsolete apt list entries
|
||||
lineinfile: path=/etc/apt/sources.list regexp="{{ item }}-backports" state=absent
|
||||
with_items:
|
||||
- jessie
|
||||
- stretch
|
||||
- include_tasks: remove-obsolete-apt-lists.yml
|
||||
- include_tasks: debian-12-or-earlier.yml
|
||||
when: ansible_distribution_major_version|int <= 12
|
||||
- include_tasks: debian-13-or-later.yml
|
||||
when: ansible_distribution_major_version|int >= 13
|
||||
|
||||
|
||||
- name: update apt cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue