From 7677eb47b76924776e6df87d2002d84436242576 Mon Sep 17 00:00:00 2001 From: Camille Prugnard Date: Mon, 4 Oct 2021 18:03:02 +0200 Subject: [PATCH] update condition for exporter version to latest with stdout value --- tasks/mongodb_exporter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/mongodb_exporter.yml b/tasks/mongodb_exporter.yml index b052182..429396b 100644 --- a/tasks/mongodb_exporter.yml +++ b/tasks/mongodb_exporter.yml @@ -28,7 +28,7 @@ notify: - 'prometheus | mongodb exporter | restart service' when: - - prometheus_mongodb_exporter_version < '0.2' + - prometheus_mongodb_exporter_latest_version.stdout < '0.2' - name: 'prometheus | mongodb exporter > v0.2 | move to /usr/local/bin' copy: @@ -41,7 +41,7 @@ notify: - 'prometheus | mongodb exporter | restart service' when: - - prometheus_mongodb_exporter_version > '0.2' + - prometheus_mongodb_exporter_latest_version.stdout > '0.2' - name: 'prometheus | mongodb exporter | install unit file to systemd' template: