mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +00:00
2ec62b392b
Signed-off-by: Jack <jack4zhang@gmail.com>
23 lines
795 B
YAML
23 lines
795 B
YAML
---
|
|
- name: Common preflight
|
|
ansible.builtin.include_role:
|
|
name: prometheus.prometheus._common
|
|
tasks_from: preflight.yml
|
|
vars:
|
|
_common_web_listen_address: "{{ process_exporter_web_listen_address }}"
|
|
|
|
- name: Discover latest version
|
|
ansible.builtin.set_fact:
|
|
process_exporter_version: "{{ (lookup('url', 'https://api.github.com/repos/{{ _process_exporter_repo }}/releases/latest', headers=_github_api_headers,
|
|
split_lines=False) | from_json).get('tag_name') | replace('v', '') }}"
|
|
run_once: true
|
|
until: process_exporter_version is version('0.0.0', '>=')
|
|
retries: 10
|
|
when:
|
|
- process_exporter_version == "latest"
|
|
tags:
|
|
- process_exporter
|
|
- install
|
|
- process_exporter_install
|
|
- download
|
|
- process_exporter_download
|