33 lines
872 B
YAML
33 lines
872 B
YAML
---
|
|
- name: gather os specific variables
|
|
include_vars: "{{ lookup('first_found', possible_files) }}"
|
|
vars:
|
|
possible_files:
|
|
files:
|
|
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
|
|
- "{{ ansible_distribution }}.yaml"
|
|
- "{{ ansible_os_family }}.yaml"
|
|
- "default.yaml"
|
|
paths:
|
|
- vars
|
|
|
|
- name: include os specific tasks
|
|
include_tasks: "{{ lookup('first_found', possible_files) }}"
|
|
vars:
|
|
possible_files:
|
|
files:
|
|
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
|
|
- "{{ ansible_distribution }}.yaml"
|
|
- "{{ ansible_os_family }}.yaml"
|
|
- "default.yaml"
|
|
paths:
|
|
- tasks
|
|
|
|
- include: pre.yaml
|
|
|
|
- include: install.yaml
|
|
when:
|
|
- node_exporter_version is version(node_exporter_local_version, '>')
|
|
|
|
- include: configure.yaml
|