add args before warn

This commit is contained in:
Ludovic Cartier 2021-05-27 10:48:47 +02:00
parent 4b4f0573bd
commit 695100709b
4 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
--- ---
- name: 'prometheus | mongodb exporter | get latest release from GitHub' - 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//" shell: curl --silent "https://api.github.com/repos/percona/mongodb_exporter/releases/latest" | jq -r .tag_name | sed "s/v//"
args:
warn: false warn: false
register: prometheus_mongodb_exporter_version register: prometheus_mongodb_exporter_version
run_once: true run_once: true

View File

@ -1,6 +1,7 @@
--- ---
- name: 'prometheus | mysqld exporter | get latest release from GitHub' - 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//" shell: curl --silent "https://api.github.com/repos/prometheus/mysqld_exporter/releases/latest" | jq -r .tag_name | sed "s/v//"
args:
warn: false warn: false
register: prometheus_mysqld_exporter_version register: prometheus_mysqld_exporter_version
run_once: true run_once: true

View File

@ -1,6 +1,7 @@
--- ---
- name: 'prometheus | node exporter | get latest release from GitHub' - 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//" shell: curl --silent "https://api.github.com/repos/prometheus/node_exporter/releases/latest" | jq -r .tag_name | sed "s/v//"
args:
warn: false warn: false
register: prometheus_node_exporter_version register: prometheus_node_exporter_version
run_once: true run_once: true

View File

@ -1,6 +1,7 @@
--- ---
- name: 'prometheus | postgres exporter | get latest release from GitHub' - 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//" shell: curl --silent "https://api.github.com/repos/prometheus-community/postgres_exporter/releases/latest" | jq -r .tag_name | sed "s/v//"
args:
warn: false warn: false
register: prometheus_postgres_exporter_version register: prometheus_postgres_exporter_version
run_once: true run_once: true