From 67b421f29c59acd5ba3fffb31b89281d5e21be91 Mon Sep 17 00:00:00 2001
From: tec <tec@ucc.gu.uwa.edu.au>
Date: Tue, 24 Dec 2019 17:31:53 +0800
Subject: [PATCH] Tweak monitor_client again

---
 monitor_client.yml | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/monitor_client.yml b/monitor_client.yml
index bdadc4c..1701ab0 100644
--- a/monitor_client.yml
+++ b/monitor_client.yml
@@ -9,14 +9,8 @@
             name: prometheus-node-exporter
             state: latest
         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_major_version != '10',
-        }
\ No newline at end of file
+            when: ansible_distribution == 'Debian' and ansible_distribution_version == '9',
+        }
-- 
GitLab