mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 20:03:04 +00:00
3259947a89
Signed-off-by: gardar <gardar@users.noreply.github.com>
21 lines
655 B
YAML
21 lines
655 B
YAML
---
|
|
- name: Common preflight
|
|
ansible.builtin.include_role:
|
|
name: prometheus.prometheus._common
|
|
tasks_from: preflight.yml
|
|
|
|
- name: Discover latest version
|
|
ansible.builtin.set_fact:
|
|
cadvisor_version: "{{ (lookup('url', 'https://api.github.com/repos/{{ _cadvisor_repo }}/releases/latest', headers=_github_api_headers,
|
|
split_lines=False) | from_json).get('tag_name') | replace('v', '') }}"
|
|
run_once: true
|
|
until: cadvisor_version is version('0.0.0', '>=')
|
|
retries: 10
|
|
when:
|
|
- cadvisor_version == "latest"
|
|
tags:
|
|
- cadvisor
|
|
- install
|
|
- cadvisor_install
|
|
- download
|
|
- cadvisor_download
|