xoxys.ntp/tasks/main.yml
Robert Kaussow 8a434ce07b
Some checks failed
continuous-integration/drone/push Build is failing
remove old loop syntax
2019-08-27 22:40:56 +02:00

25 lines
617 B
YAML

---
- include_vars: "{{ item }}"
with_first_found:
- "os_{{ ansible_os_family | lower }}.yml"
- 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"