feat: move to dedicated repo

This commit is contained in:
Simon Cornet 2024-11-22 11:13:16 +01:00
commit 4a88a5b28d
54 changed files with 1524 additions and 0 deletions

32
tasks/ossupport.yaml Normal file
View file

@ -0,0 +1,32 @@
---
# support debian 12
- name: "check for os support"
ansible.builtin.set_fact:
os_support: true
when:
- 'ansible_distribution == "Debian"'
- 'ansible_distribution_major_version == "12"'
# support ubuntu 22
- name: "check for os support"
ansible.builtin.set_fact:
os_support: true
when:
- 'ansible_distribution == "Ubuntu"'
- 'ansible_distribution_major_version == "22"'
# support ubuntu 24
- name: "check for os support"
ansible.builtin.set_fact:
os_support: true
when:
- 'ansible_distribution == "Ubuntu"'
- 'ansible_distribution_major_version == "24"'
# fail role when not supported
- name: "unsupported role"
ansible.builtin.fail:
msg: "This role not supported on this Operating System."
when:
- "os_support is not defined"