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