Split download to arm64 and armv7 versions

This commit is contained in:
Przemek Grondek 2023-07-02 23:02:32 +02:00
parent 3ae7fcf67e
commit dda2fe89a2

View File

@ -5,12 +5,21 @@
state: directory state: directory
- name: Download node-explorer - name: Download node-explorer
when: ansible_architecture == "aarch64"
unarchive: unarchive:
src: https://github.com/prometheus/node_exporter/releases/download/v{{version}}/node_exporter-{{version}}.linux-arm64.tar.gz src: https://github.com/prometheus/node_exporter/releases/download/v{{version}}/node_exporter-{{version}}.linux-arm64.tar.gz
dest: /tmp/node_exporter dest: /tmp/node_exporter
remote_src: yes remote_src: yes
mode: 0755 mode: 0755
- name: Download node-explorer
when: ansible_architecture == "armv7l"
unarchive:
src: https://github.com/prometheus/node_exporter/releases/download/v{{version}}/node_exporter-{{version}}.linux-armv7.tar.gz
dest: /tmp/node_exporter
remote_src: yes
mode: 0755
- name: get folder name - name: get folder name
shell: ls /tmp/node_exporter shell: ls /tmp/node_exporter
register: dir_name register: dir_name