add warn=false to shell / curl command

This commit is contained in:
Ludovic Cartier 2021-05-27 10:41:33 +02:00
parent 287a409416
commit 4b4f0573bd
4 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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