--- - include_vars: "{{ lookup('first_found', params) }}" vars: params: files: - "{{ ansible_lsb.id | default('') | lower }}.yml" - "{{ ansible_os_family | lower }}.yml" - default.yml paths: - "vars" - include_tasks: install.yml - include_vars: "{{ lookup('first_found', params) }}" vars: params: files: - "config_{{ ansible_lsb.id | default('') | lower }}.yml" - "config_{{ ansible_os_family | lower }}.yml" - "config_default.yml" paths: - "tasks"