feat: initial commit
This commit is contained in:
commit
3f0a878c3a
18 changed files with 321 additions and 0 deletions
16
tasks/ossupport.yaml
Normal file
16
tasks/ossupport.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
# support debian 12
|
||||
- name: "check for os support"
|
||||
ansible.builtin.set_fact:
|
||||
os_support: true
|
||||
when:
|
||||
- 'ansible_distribution == "Debian"'
|
||||
- 'ansible_distribution_major_version == "12"'
|
||||
|
||||
# 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue