This commit is contained in:
parent
77ed65b14b
commit
8a434ce07b
@ -3,9 +3,22 @@
|
|||||||
with_first_found:
|
with_first_found:
|
||||||
- "os_{{ ansible_os_family | lower }}.yml"
|
- "os_{{ ansible_os_family | lower }}.yml"
|
||||||
|
|
||||||
- include_tasks: setup_default.yml
|
- include_vars: "{{ lookup('first_found', params) }}"
|
||||||
when: not ansible_lsb.id is defined or not ansible_lsb.id == "Univention"
|
vars:
|
||||||
- include_tasks: setup_ucs.yml
|
params:
|
||||||
when:
|
files:
|
||||||
- ansible_lsb.id is defined
|
- "{{ ansible_lsb.id | default('') | lower }}.yml"
|
||||||
- ansible_lsb.id == "Univention"
|
- "{{ 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