2017-05-18 21:24:15 +00:00
|
|
|
---
|
2022-09-04 13:51:45 +00:00
|
|
|
- include_vars: "{{ var_files }}"
|
2019-08-24 13:01:30 +00:00
|
|
|
vars:
|
2022-09-04 13:51:45 +00:00
|
|
|
var_files: "{{ lookup('first_found', params, errors='ignore') }}"
|
2019-08-24 13:01:30 +00:00
|
|
|
params:
|
|
|
|
files:
|
2019-08-24 13:15:58 +00:00
|
|
|
- "{{ ansible_lsb.id | default('') | lower }}.yml"
|
2022-09-04 13:51:45 +00:00
|
|
|
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version }}.yml"
|
2019-08-24 13:01:30 +00:00
|
|
|
- "{{ ansible_os_family | lower }}.yml"
|
|
|
|
paths:
|
|
|
|
- "vars"
|
2022-09-04 13:51:45 +00:00
|
|
|
when: var_files
|
2019-08-24 13:01:30 +00:00
|
|
|
|
2017-12-09 16:52:26 +00:00
|
|
|
- include_tasks: install.yml
|
2019-08-24 13:01:30 +00:00
|
|
|
|
2019-08-24 13:22:56 +00:00
|
|
|
- include_tasks: "{{ lookup('first_found', params) }}"
|
2019-08-24 13:01:30 +00:00
|
|
|
vars:
|
|
|
|
params:
|
|
|
|
files:
|
2019-08-24 13:15:58 +00:00
|
|
|
- "config_{{ ansible_lsb.id | default('') | lower }}.yml"
|
2019-08-24 13:01:30 +00:00
|
|
|
- "config_{{ ansible_os_family | lower }}.yml"
|
|
|
|
- "config_default.yml"
|
|
|
|
paths:
|
|
|
|
- "tasks"
|
2019-08-25 18:54:37 +00:00
|
|
|
|
|
|
|
- include_tasks: post_tasks.yml
|