Commit b64f8828 authored by tec's avatar tec

Monitor_client can be a bit more ambitious with cloudalchemy.node-exporter...

Monitor_client can be a bit more ambitious with cloudalchemy.node-exporter because it does its own checks
parent 67b421f2
......@@ -3,14 +3,14 @@
become: true
become_user: root
remote_user: root
- name: Have prometheus-node-exporter
name: prometheus-node-exporter
state: latest
when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '10'
when: ansible_facts['os_family'] == 'Debian' and ansible_distribution_major_version == '10'
- name: Gather the rpm package facts
manager: auto
- {
role: cloudalchemy.node-exporter,
when: ansible_distribution == 'Debian' and ansible_distribution_version == '9',
- { role: cloudalchemy.node-exporter, when: "ansible_facts.packages['prometheus-node-exporter'] is not defined" }
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