From 4b4f0573bd040e7914682f74e1cfc7746e0f3781 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Thu, 27 May 2021 10:41:33 +0200 Subject: [PATCH] add warn=false to shell / curl command --- tasks/mongodb_exporter.yml | 1 + tasks/mysqld_exporter.yml | 1 + tasks/node_exporter.yml | 1 + tasks/postgresql_exporter.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/tasks/mongodb_exporter.yml b/tasks/mongodb_exporter.yml index 5c9a6b4..3f43b20 100644 --- a/tasks/mongodb_exporter.yml +++ b/tasks/mongodb_exporter.yml @@ -1,6 +1,7 @@ --- - name: 'prometheus | mongodb exporter | get latest release from GitHub' shell: curl --silent "https://api.github.com/repos/percona/mongodb_exporter/releases/latest" | jq -r .tag_name | sed "s/v//" + warn: false register: prometheus_mongodb_exporter_version run_once: true diff --git a/tasks/mysqld_exporter.yml b/tasks/mysqld_exporter.yml index 0e2ddb7..6556871 100644 --- a/tasks/mysqld_exporter.yml +++ b/tasks/mysqld_exporter.yml @@ -1,6 +1,7 @@ --- - name: 'prometheus | mysqld exporter | get latest release from GitHub' shell: curl --silent "https://api.github.com/repos/prometheus/mysqld_exporter/releases/latest" | jq -r .tag_name | sed "s/v//" + warn: false register: prometheus_mysqld_exporter_version run_once: true diff --git a/tasks/node_exporter.yml b/tasks/node_exporter.yml index da5678d..1e9c287 100644 --- a/tasks/node_exporter.yml +++ b/tasks/node_exporter.yml @@ -1,6 +1,7 @@ --- - name: 'prometheus | node exporter | get latest release from GitHub' shell: curl --silent "https://api.github.com/repos/prometheus/node_exporter/releases/latest" | jq -r .tag_name | sed "s/v//" + warn: false register: prometheus_node_exporter_version run_once: true diff --git a/tasks/postgresql_exporter.yml b/tasks/postgresql_exporter.yml index 0ad972f..80281d1 100644 --- a/tasks/postgresql_exporter.yml +++ b/tasks/postgresql_exporter.yml @@ -1,6 +1,7 @@ --- - name: 'prometheus | postgres exporter | get latest release from GitHub' shell: curl --silent "https://api.github.com/repos/prometheus-community/postgres_exporter/releases/latest" | jq -r .tag_name | sed "s/v//" + warn: false register: prometheus_postgres_exporter_version run_once: true