Merge pull request #82 from svc-design/codex/fix-undefined-variable-in-blackbox_exporter-task

Fix blackbox archive fact computation
This commit is contained in:
shenlan 2025-09-23 11:03:09 +08:00 committed by GitHub
commit 6e6dbf40d6

View File

@ -1,7 +1,10 @@
---
- name: Compute archive information
- name: Determine archive architecture
ansible.builtin.set_fact:
blackbox_archive_arch: "{{ (blackbox_arch_map | default({})).get((ansible_architecture | lower), 'linux-amd64') }}"
- name: Compute archive information
ansible.builtin.set_fact:
blackbox_archive_name: "blackbox_exporter-{{ blackbox_version }}.{{ blackbox_archive_arch }}"
blackbox_archive_file: "/tmp/{{ blackbox_archive_name }}.tar.gz"