diff --git a/tasks/node_exporter.yml b/tasks/node_exporter.yml index 468f559..0a00b03 100644 --- a/tasks/node_exporter.yml +++ b/tasks/node_exporter.yml @@ -3,7 +3,7 @@ shell: curl --silent "https://api.github.com/repos/prometheus/node_exporter/releases/latest" | jq -r .tag_name | sed "s/v//" args: warn: false - register: prometheus_node_exporter_version + register: prometheus_node_exporter_latest_version run_once: true - name: 'prometheus | node exporter | download' diff --git a/tasks/postgresql_exporter.yml b/tasks/postgresql_exporter.yml index c1133a8..6beae07 100644 --- a/tasks/postgresql_exporter.yml +++ b/tasks/postgresql_exporter.yml @@ -3,7 +3,7 @@ shell: curl --silent "https://api.github.com/repos/prometheus-community/postgres_exporter/releases/latest" | jq -r .tag_name | sed "s/v//" args: warn: false - register: prometheus_postgres_exporter_version + register: prometheus_postgres_exporter_latest_version run_once: true - name: 'prometheus | postgres exporter | download'