diff --git a/monitor_client.yml b/monitor_client.yml index a9656abfa4c9c53a1d95ee1096a8654e91bf5b00..e667f430ef8c94544293414c6f8286a1e21d40b9 100644 --- a/monitor_client.yml +++ b/monitor_client.yml @@ -8,10 +8,15 @@ apt: name: prometheus-node-exporter state: latest - # roles: - # - cloudalchemy.node-exporter - # vars: - # node_exporter_enabled_collectors: - # - systemd - # - textfile - # - processes + when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '10' + - name: Occlude prometheus-node-exporter package on Debian!=10 + apt: + name: prometheus-node-exporter + state: absent + purge: true + when: ansible_distribution == 'Debian' and ansible_distribution_major_version != '10' + roles: + - { + role: cloudalchemy.node-exporter, + when: ansible_distribution == 'Debian' and ansible_distribution_version != '10.2', + } \ No newline at end of file