remove old loop syntax
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-08-27 22:40:56 +02:00
parent 77ed65b14b
commit 8a434ce07b
4 changed files with 19 additions and 6 deletions

View File

@ -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"