This commit is contained in:
parent
77ed65b14b
commit
8a434ce07b
@ -3,9 +3,22 @@
|
||||
with_first_found:
|
||||
- "os_{{ ansible_os_family | lower }}.yml"
|
||||
|
||||
- include_tasks: setup_default.yml
|
||||
when: not ansible_lsb.id is defined or not ansible_lsb.id == "Univention"
|
||||
- include_tasks: setup_ucs.yml
|
||||
when:
|
||||
- ansible_lsb.id is defined
|
||||
- ansible_lsb.id == "Univention"
|
||||
- include_vars: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_lsb.id | default('') | lower }}.yml"
|
||||
- "{{ ansible_os_family | lower }}.yml"
|
||||
paths:
|
||||
- "vars"
|
||||
errors: "ignore"
|
||||
|
||||
- include_tasks: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- "setup_{{ ansible_lsb.id | default('') | lower }}.yml"
|
||||
- "setup_{{ ansible_os_family | lower }}.yml"
|
||||
- "setup_default.yml"
|
||||
paths:
|
||||
- "tasks"
|
||||
|
Loading…
Reference in New Issue
Block a user