Skip to content

Commit

Permalink
Merge pull request #9 from sitewards/fix-remove-hardcoded-version-values
Browse files Browse the repository at this point in the history
[FIX] remove hardcoded version values
  • Loading branch information
skalenji authored Feb 24, 2021
2 parents 7a57b75 + 0592af6 commit c812beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- name: "Move node-exporter to the /usr/local/bin/node-exporter"
copy:
remote_src: true
src: "/tmp/node_exporter-0.14.0.linux-{{ node_exporter_arch }}/node_exporter"
src: "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ node_exporter_arch }}/node_exporter"
dest: "/usr/local/bin/node_exporter"
owner: "root"
group: "root"
Expand All @@ -39,6 +39,6 @@
state: "absent"
with_items:
- "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ node_exporter_arch }}.tar.gz"
- "/tmp/node_exporter-0.14.0.linux-{{ node_exporter_arch }}/"
- "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ node_exporter_arch }}/"
when: bin.stat.exists == False or
bin.stat.checksum != node_exporter_checksum_binary

0 comments on commit c812beb

Please sign in to comment.