From 01072bbd139532e83189cfb2c3eec5d698c9ac7d Mon Sep 17 00:00:00 2001 From: Eduardo Benzecri Date: Thu, 15 Jun 2023 13:13:50 -0300 Subject: [PATCH] ansible-scylla-node: Runs 'node_exporter_install' just for old versions This patch will run 'node_exporter_install' only if current Scylla version is < 5.0 / 2022 Ref: #249 Signed-off-by: Eduardo Benzecri --- ansible-scylla-node/tasks/common.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible-scylla-node/tasks/common.yml b/ansible-scylla-node/tasks/common.yml index 338c00a0..3c1ef9ed 100644 --- a/ansible-scylla-node/tasks/common.yml +++ b/ansible-scylla-node/tasks/common.yml @@ -117,11 +117,13 @@ - name: node exporter setup shell: | node_exporter_install --force - when: install_type == 'online' become: true notify: - node_exporter start ignore_errors: true + when: + - install_type == 'online' + - ansible_facts.services["scylla-node-exporter.service"] is not defined #TODO: stop ignoring errors when the node_exporter_install script fix is available in all actual versions, resp. use only for < 5.0 / 2022 - name: Enable 'scylla-node-exporter' service