ansible-collection-prometheus/roles/snmp_exporter/tasks/preflight.yml
gardar b2d9aa565a
fix: lint
Signed-off-by: gardar <gardar@users.noreply.github.com>
2022-12-08 18:02:13 +00:00

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"