Split download to arm64 and armv7 versions
This commit is contained in:
parent
3ae7fcf67e
commit
dda2fe89a2
@ -5,12 +5,21 @@
|
||||
state: directory
|
||||
|
||||
- name: Download node-explorer
|
||||
when: ansible_architecture == "aarch64"
|
||||
unarchive:
|
||||
src: https://github.com/prometheus/node_exporter/releases/download/v{{version}}/node_exporter-{{version}}.linux-arm64.tar.gz
|
||||
dest: /tmp/node_exporter
|
||||
remote_src: yes
|
||||
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
|
||||
shell: ls /tmp/node_exporter
|
||||
register: dir_name
|
||||
|
Loading…
Reference in New Issue
Block a user