From dda2fe89a255912f2b99300e238002a0c69ffccf Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 2 Jul 2023 23:02:32 +0200 Subject: [PATCH] Split download to arm64 and armv7 versions --- roles/node_explorer/tasks/install.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/node_explorer/tasks/install.yml b/roles/node_explorer/tasks/install.yml index 00b1a51..f091c0c 100644 --- a/roles/node_explorer/tasks/install.yml +++ b/roles/node_explorer/tasks/install.yml @@ -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