Update roles/influxdb_exporter/tasks/preflight.yml

Co-authored-by: gardar <gardar@users.noreply.github.com>
Signed-off-by: Davide Obbi <126786027+dobbi84@users.noreply.github.com>
Signed-off-by: dobbi84 <davide.obbi@e4company.com>
This commit is contained in:
Davide Obbi 2024-10-18 16:20:38 +02:00 committed by gardar
parent cc8cfda920
commit 776211cfcb

View file

@ -56,27 +56,3 @@
- influxdb_exporter_install
- download
- influxdb_exporter_download
- name: Get influxdb_exporter binary checksum
when:
- not influxdb_exporter_skip_install
block:
- name: Get checksum list from github
ansible.builtin.set_fact:
__influxdb_exporter_checksums: "{{ lookup('url', influxdb_exporter_checksums_url, headers=_influxdb_exporter_github_api_headers, wantlist=True) | list }}"
run_once: true
until: __influxdb_exporter_checksums is search('linux-' + go_arch + '.tar.gz')
retries: 10
- name: "Get checksum for {{ go_arch }}"
ansible.builtin.set_fact:
__influxdb_exporter_checksum: "{{ item.split(' ')[0] }}"
with_items: "{{ __influxdb_exporter_checksums }}"
when:
- "('linux-' + go_arch + '.tar.gz') in item"
tags:
- influxdb_exporter
- install
- influxdb_exporter_install
- download
- influxdb_exporter_download