a817b1a8ff
Signed-off-by: gardar <gardar@users.noreply.github.com>
20 lines
849 B
YAML
20 lines
849 B
YAML
---
|
|
- name: Set the Grafana Agent version to latest version
|
|
ansible.builtin.set_fact:
|
|
grafana_agent_version: "{{ (lookup('url', 'https://api.github.com/repos/{{ _grafana_agent_github_org }}/{{ _grafana_agent_github_repo }}/releases/latest',
|
|
split_lines=False) | from_json).get('tag_name') | replace('v', '') }}"
|
|
when: grafana_agent_version == 'latest' and not __grafana_agent_local_install
|
|
|
|
- name: Grafana Agent version to download
|
|
ansible.builtin.debug:
|
|
var: grafana_agent_version
|
|
|
|
- name: Set the Grafana Agent download URL
|
|
ansible.builtin.set_fact:
|
|
_grafana_agent_download_url: |-
|
|
{{ _grafana_agent_base_download_url }}/v{{ grafana_agent_version }}/{{ _grafana_agent_download_archive_file }}
|
|
|
|
- name: Grafana Agent download URL
|
|
ansible.builtin.debug:
|
|
var: _grafana_agent_download_url
|