mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-12-23 00:37:33 +01:00
Fix task inclusion in prometheus_node
This commit is contained in:
parent
27bd6628fb
commit
04625e6dfa
2 changed files with 10 additions and 7 deletions
9
roles/prometheus_node/tasks/install.yml
Normal file
9
roles/prometheus_node/tasks/install.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
- name: install node exporter
|
||||
include_tasks: "install/{{ item }}.yml"
|
||||
with_first_found:
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{% ansible_distribution %}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version}} {% endif %}"
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}"
|
||||
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}"
|
||||
- "{{ ansible_distribution }}"
|
|
@ -15,16 +15,10 @@
|
|||
- "role::prometheus_node:config"
|
||||
|
||||
- name: install node exporter
|
||||
import_tasks: "install/{{ item }}.yml"
|
||||
with_first_found:
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{% ansible_distribution %}_{% if 'major_release' in ansible_lsb %}{{ ansible_lsb.major_release }}{% else %}{{ ansible_distribution_version}} {% endif %}"
|
||||
- "{% if 'id' in ansible_lsb %}{{ ansible_lsb.id }}{% else %}{{ ansible_distribution }}{% endif %}"
|
||||
- "{{ ansible_distribution }}_{{ ansible_distribution_version }}"
|
||||
- "{{ ansible_distribution }}"
|
||||
import_tasks: install.yml
|
||||
tags:
|
||||
- "role::prometheus_node"
|
||||
- "role::prometheus_node:install"
|
||||
|
||||
|
||||
- name: install custom textfile collectors
|
||||
import_tasks: collectors.yml
|
||||
|
|
Loading…
Reference in a new issue