From 5b98397bbd4b902b582ea1a331bc3856e03fa400 Mon Sep 17 00:00:00 2001 From: "tom.chivert" Date: Thu, 20 Jul 2023 15:43:24 +0200 Subject: [PATCH] typo --- tasks/exporter/{upgrade.yml => cleanup.yml} | 0 tasks/exporter/common.yml | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename tasks/exporter/{upgrade.yml => cleanup.yml} (100%) diff --git a/tasks/exporter/upgrade.yml b/tasks/exporter/cleanup.yml similarity index 100% rename from tasks/exporter/upgrade.yml rename to tasks/exporter/cleanup.yml diff --git a/tasks/exporter/common.yml b/tasks/exporter/common.yml index 830f278..728aaf6 100644 --- a/tasks/exporter/common.yml +++ b/tasks/exporter/common.yml @@ -5,8 +5,8 @@ register: stat_result tags: [ 'prometheus_{{ exporter }}' ] -- name '{{ exporter }} exporter | remove old exporter version' - include_tasks: "upgrade.yml" +- name: '{{ exporter }} exporter | remove old exporter version' + include_tasks: "cleanup.yml" when: stat_result.stat.exists and exporter_upgrade == "yes" tags: [ 'prometheus_{{ exporter }}' ]