mirror of
https://github.com/prometheus-community/ansible
synced 2024-12-03 17:19:26 +00:00
b2d9aa565a
Signed-off-by: gardar <gardar@users.noreply.github.com>
7 lines
414 B
YAML
7 lines
414 B
YAML
---
|
|
- name: "Get checksum for snmp exporter"
|
|
ansible.builtin.set_fact:
|
|
snmp_exporter_checksum: "{{ item.split(' ')[0] }}"
|
|
with_items:
|
|
- "{{ lookup('url', 'https://github.com/prometheus/snmp_exporter/releases/download/v' + snmp_exporter_version + '/sha256sums.txt', wantlist=True) | list }}"
|
|
when: "('linux-' + (go_arch_map[ansible_architecture] | default(ansible_architecture)) + '.tar.gz') in item"
|