mirror of
https://gitea.0xace.cc/ansible-galaxy/postgres-exporter.git
synced 2024-11-25 07:57:34 +00:00
18 lines
746 B
YAML
18 lines
746 B
YAML
|
---
|
||
|
- name: Load a variable file based on the OS type
|
||
|
include_vars: "{{ lookup('first_found', params) }}"
|
||
|
vars:
|
||
|
params:
|
||
|
files:
|
||
|
- "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yaml"
|
||
|
- "{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_version'] }}.yaml"
|
||
|
- "{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version'] }}.yaml"
|
||
|
- "{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_version'] }}.yaml"
|
||
|
- "{{ ansible_facts['os_family'] }}.yaml"
|
||
|
paths:
|
||
|
- "vars"
|
||
|
tags: postgres_exporter_vars
|
||
|
|
||
|
- name: Include postgres_exporter install
|
||
|
include_tasks: "{{ ansible_facts['os_family'] }}.yaml"
|