1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-10-23 03:46:59 +02:00
ansible-collection-prometheus/roles/prometheus_node/tasks/main.yml

40 lines
1 KiB
YAML
Raw Normal View History

2020-11-13 10:36:46 +01:00
---
- 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"
2020-11-13 10:36:46 +01:00
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"