2019-02-23 11:53:41 +00:00
|
|
|
- import_tasks: software.yaml
|
|
|
|
- import_tasks: config.yaml
|
2019-02-24 19:32:50 +00:00
|
|
|
|
|
|
|
- name: Check platform-specific file exists
|
|
|
|
tags:
|
|
|
|
- platform
|
|
|
|
stat:
|
|
|
|
path: "{{ role_path }}/tasks/includes/platform_{{ ansible_system_vendor | lower + '_' + ansible_form_factor | lower }}.yaml"
|
|
|
|
register: platform_file
|
|
|
|
|
|
|
|
- name: Include platform-specific file
|
|
|
|
tags:
|
|
|
|
- platform
|
|
|
|
include_tasks: "{{ platform_file.stat.path }}"
|
|
|
|
when: platform_file.stat.exists
|