Make compatchecks deduplicatable

This commit is contained in:
uumas
2025-04-05 00:44:05 +03:00
parent 8e27769f5b
commit cebe1eb957
14 changed files with 70 additions and 77 deletions

View File

@@ -0,0 +1,11 @@
---
dependencies:
- role: uumas.general.compatcheck
vars:
compatcheck_supported_distributions:
- name: debian
version_min: 10
- name: ubuntu
version_min: 24
- name: fedora
version_min: 39

View File

@@ -1,16 +1,4 @@
---
- name: Ensure host distribution is supported
ansible.builtin.import_role:
name: compatcheck
vars:
compatcheck_supported_distributions:
- name: debian
version_min: 10
- name: ubuntu
version_min: 24
- name: fedora
version_min: 39
- name: Include variables for os family {{ ansible_os_family }}
ansible.builtin.include_vars: "{{ ansible_os_family }}.yaml"