From a1bf300d54c5335af64073d8e89c6d7c53d014b3 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Sat, 5 Nov 2022 21:15:21 +0100 Subject: [PATCH] bookworm-detect: transitional role to help dealing with unreleased bookworm version --- CHANGELOG.md | 1 + bookworm-detect/tasks/main.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 bookworm-detect/tasks/main.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 4546d4da..8b8f1bce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -463,6 +463,7 @@ The **patch** part changes is incremented if multiple releases happen the same m ### Added +* bookworm-detect: transitional role to help dealing with unreleased bookworm version * dovecot: Update munin plugin & configure it * dovecot: vmail uid/gid are configurable * evoacme: variable to disable Debian version check (default: False) diff --git a/bookworm-detect/tasks/main.yml b/bookworm-detect/tasks/main.yml new file mode 100644 index 00000000..47dfd623 --- /dev/null +++ b/bookworm-detect/tasks/main.yml @@ -0,0 +1,11 @@ +--- + +- debug: + var: ansible_lsb + +# Force facts until Debian 12 is released because Ansible is dumb +- set_fact: + ansible_distribution_major_version: 12 + ansible_distribution: "Debian" + ansible_distribution_release: "bookworm" + when: "ansible_lsb.codename == 'bookworm'" \ No newline at end of file