mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +00:00
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:
parent
cc8cfda920
commit
776211cfcb
1 changed files with 0 additions and 24 deletions
|
@ -56,27 +56,3 @@
|
||||||
- influxdb_exporter_install
|
- influxdb_exporter_install
|
||||||
- download
|
- download
|
||||||
- influxdb_exporter_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
|
|
||||||
|
|
Loading…
Reference in a new issue