chore: include vars go_arch and go_arch_map needed for getting the exporter from GH

Signed-off-by: dobbi84 <davide.obbi@e4company.com>
This commit is contained in:
dobbi84 2024-09-25 09:11:29 +02:00 committed by gardar
parent dd0dbaadd6
commit 745154f8d5

View file

@ -1,3 +1,11 @@
---
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_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 {} }}"