ansible-roles/bookworm-detect/tasks/main.yml
Jérémy Lecour 512b06a513
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |4860|7|4853|14|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/217//ansiblelint">Evolix » ansible-roles » unstable #217</a>
gitea/ansible-roles/pipeline/head This commit looks good
bookworm-detect: detect also from description
2023-03-17 22:32:31 +01:00

11 lines
322 B
YAML

---
- 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: "'bookworm' in ansible_lsb.codename or 'bookworm' in ansible_lsb.description"