ansible-collection-prometheus/roles/snmp_exporter/tasks/preflight.yml

8 lines
414 B
YAML
Raw Normal View History

---
- 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"