Skip to content
Snippets Groups Projects
Commit 081dc698 authored by Lars Beckers's avatar Lars Beckers
Browse files

apt: add compat for name of security dist on bullseye

parent 480c386e
Branches
Tags v2.4.4
1 merge request!15Bullseye Compatibility
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
repo: "deb{{ src }} {{ apt_mirror_security }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}" repo: "deb{{ src }} {{ apt_mirror_security }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}"
with_nested: with_nested:
- "{{ apt_repos }}" - "{{ apt_repos }}"
- ['/updates'] - "{{ ['/updates'] if ansible_distribution_major_version|int(default=99) < 11 else ['-security'] }}"
when: not raspbian_has_no_security when: not raspbian_has_no_security
notify: notify:
- update apt cache - update apt cache
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
repo: "deb{{ src }} {{ apt_mirror_security }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}" repo: "deb{{ src }} {{ apt_mirror_security }} {{ ansible_distribution_release }}{{ item[1] }} {{ item[0] }}"
with_nested: with_nested:
- "{{ ['main', 'contrib', 'non-free']|difference(apt_repos) }}" - "{{ ['main', 'contrib', 'non-free']|difference(apt_repos) }}"
- ['/updates'] - "{{ ['/updates'] if ansible_distribution_major_version|int(default=99) < 11 else ['-security'] }}"
when: not raspbian_has_no_security when: not raspbian_has_no_security
notify: notify:
- update apt cache - update apt cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment