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