Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
Add support for Debian 11 (also fixes security issue) (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnmvisser authored Oct 20, 2021
1 parent d3eeca8 commit 7ed7c8c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ galaxy_info:
versions:
- wheezy
- jessie
- buster
- bullseye
#
# Below are all categories currently available. Just as with
# the platforms above, uncomment those that apply to your role.
Expand Down
4 changes: 4 additions & 0 deletions tasks/unattended-upgrades.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
when: (ansible_distribution == "Debian") and (ansible_distribution_release == "wheezy")

- name: add Debian Bullseye workaround
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_release }}.yml"
when: (ansible_distribution == "Debian") and (ansible_distribution_release == "bullseye")

- name: install powermgmt-base
apt:
pkg:
Expand Down
9 changes: 9 additions & 0 deletions vars/Debian-bullseye.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# From https://metadata.ftp-master.debian.org/changelogs//main/u/unattended-upgrades/unattended-upgrades_2.8_changelog
# Allow both ${distro_codename} or ${distro_codename}-security on Debian
# as security update codenames. The latter will be used starting with
# Bullseye, but to help backporting and testing the configuration file keeps
# working on Buster and older releases. (Closes: #933138)
__unattended_origins_patterns:
- 'origin=Debian,codename=${distro_codename},label=Debian-Security'
- 'origin=Debian,codename=${distro_codename}-security,label=Debian-Security'

0 comments on commit 7ed7c8c

Please sign in to comment.