Commit d33ddc89 authored by tec's avatar tec

If we need the role, why complicate things by having a 2nd version of node exporter?

parent 41a061af
......@@ -3,18 +3,8 @@
become: true
become_user: root
remote_user: root
pre_tasks:
# because deb10 packages version works
- name: Have prometheus-node-exporter
apt:
name: prometheus-node-exporter
state: latest
when: ansible_facts['os_family'] == 'Debian' and ansible_distribution_major_version == '10'
- name: Gather the rpm package facts
package_facts:
manager: auto
roles:
- { role: cloudalchemy.node-exporter, when: "ansible_facts.packages['prometheus-node-exporter'] is not defined" }
- role: cloudalchemy.node-exporter
tasks:
- name: Add getent passwd count monitor file
copy:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment