mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-22 09:41:01 +01:00
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
---
|
|
|
|
- name: install node exporter on debian buster
|
|
import_tasks: debian10.yml
|
|
when:
|
|
- "ansible_lsb.id == 'Debian' or ansible_lsb.id == 'Raspbian'"
|
|
- "ansible_lsb.major_release | int == 10"
|
|
tags:
|
|
- "role::prometheus_node"
|
|
- "role::prometheus_node:debian"
|
|
|
|
- name: install node exporter on debian bullseye and later
|
|
import_tasks: debian11.yml
|
|
when:
|
|
- "ansible_lsb.id == 'Debian' or ansible_lsb.id == 'Raspbian'"
|
|
- "ansible_lsb.major_release | int >= 11"
|
|
tags:
|
|
- "role::prometheus_node"
|
|
- "role::prometheus_node:debian"
|
|
|
|
- name: install node exporter on univention corporate server
|
|
import_tasks: ucs.yml
|
|
when:
|
|
- "ansible_lsb.id == 'Univention'"
|
|
tags:
|
|
- "role::prometheus_node"
|
|
- "role::prometheus_node:univention"
|
|
|
|
- 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"
|