Update roles/influxdb_exporter/vars/main.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 14:57:33 +02:00 committed by gardar
parent 40fa0afcd3
commit 9cd3949895

View file

@ -1,12 +1,9 @@
---
go_arch_map:
i386: '386'
x86_64: 'amd64'
aarch64: 'arm64'
armv7l: 'armv7'
armv6l: 'armv6'
go_arch: "{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}"
_influxdb_exporter_go_ansible_arch: "{{ {'i386': '386',
'x86_64': 'amd64',
'aarch64': 'arm64',
'armv7l': 'armv7',
'armv6l': 'armv6'}.get(ansible_architecture, ansible_architecture) }}"
_influxdb_exporter_repo: "prometheus/influxdb_exporter"
_influxdb_exporter_github_api_headers: "{{ {'GITHUB_TOKEN': lookup('ansible.builtin.env', 'GITHUB_TOKEN')} if (lookup('ansible.builtin.env', 'GITHUB_TOKEN')) else {} }}"