refactor(global_defaults): extract OS family lists to single source of truth

This commit is contained in:
2026-02-20 22:52:55 +01:00
parent a06c2ebdcf
commit 417737f904
4 changed files with 27 additions and 4 deletions

View File

@@ -14,8 +14,8 @@
- name: Set OS family flags
ansible.builtin.set_fact:
is_rhel: "{{ os in ['almalinux', 'fedora', 'rhel', 'rocky'] }}"
is_debian: "{{ os in ['debian', 'ubuntu', 'ubuntu-lts'] }}"
is_rhel: "{{ os in os_family_rhel }}"
is_debian: "{{ os in os_family_debian }}"
- name: Normalize OS version for keying
when: