2020-11-13 10:36:46 +01:00
|
|
|
---
|
|
|
|
|
2021-11-03 10:39:33 +01:00
|
|
|
- name: include os specific vars
|
|
|
|
include_vars: "{{ item }}.yml"
|
|
|
|
with_first_found:
|
2021-11-03 10:50:56 +01:00
|
|
|
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version }}{% endif %}"
|
2021-11-03 10:39:33 +01:00
|
|
|
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}"
|
|
|
|
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}"
|
|
|
|
- "{{ ansible_distribution }}"
|
|
|
|
- "default"
|
2020-11-13 10:36:46 +01:00
|
|
|
tags:
|
|
|
|
- "role::prometheus_node"
|
2021-11-03 10:39:33 +01:00
|
|
|
- "role::prometheus_node:install"
|
|
|
|
- "role::prometheus_node:collectors"
|
|
|
|
- "role::prometheus_node:config"
|
2020-11-13 10:36:46 +01:00
|
|
|
|
2021-11-03 10:39:33 +01:00
|
|
|
- name: install node exporter
|
2021-11-03 10:45:45 +01:00
|
|
|
import_tasks: install.yml
|
2020-11-13 10:36:46 +01:00
|
|
|
tags:
|
|
|
|
- "role::prometheus_node"
|
2021-11-03 10:39:33 +01:00
|
|
|
- "role::prometheus_node:install"
|
2020-11-13 10:36:46 +01:00
|
|
|
|
|
|
|
- name: install custom textfile collectors
|
|
|
|
import_tasks: collectors.yml
|
|
|
|
tags:
|
|
|
|
- "role::prometheus_node"
|
|
|
|
- "role::prometheus_node:collectors"
|
|
|
|
|
|
|
|
- name: configure prometheus node exporter
|
|
|
|
import_tasks: config.yml
|
|
|
|
tags:
|
|
|
|
- "role::prometheus_node"
|
|
|
|
- "role::prometheus_node:config"
|