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:21:05 +02:00 committed by gardar
parent 776211cfcb
commit 894efb44a1

View file

@ -31,16 +31,6 @@
- preflight
- influxdb_exporter_preflight
- name: Check if influxdb_exporter is installed
ansible.builtin.stat:
path: "{{ influxdb_exporter_binary_install_dir }}/influxdb_exporter"
register: __influxdb_exporter_is_installed
check_mode: false
tags:
- influxdb_exporter
- install
- influxdb_exporter_install
- name: Discover latest version
ansible.builtin.set_fact:
influxdb_exporter_version: "{{ (lookup('url', 'https://api.github.com/repos/{{ _influxdb_exporter_repo }}/releases/latest', headers=_influxdb_exporter_github_api_headers,