Try to ead more OS variables/files

This commit is contained in:
Sven Velt 2020-12-03 14:48:28 +01:00
parent ed928c20c7
commit 89a27120e9

View file

@ -27,7 +27,8 @@
- name: Include OS dependent variables
include_vars: "{{ item }}"
with_first_found:
- "os_{{ (ansible_os_family|lower).split(' ')[0] }}.yml"
- "os_{{ (ansible_os_family|default('Not-Available')|lower).split(' ')[0] }}.yml"
- "os_{{ (ansible_lsb.id|default('Not-Available')|lower).split(' ')[0] }}.yml"
- "os_defaut.yml"