Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Feb 22, 2019
1 parent 6215b81 commit e422b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
until: _download_binary is succeeded
retries: 5
delay: 2
delegate_to: "{{ node_exporter_delegation | default(inventory_hostname) }}"
delegate_to: "{{ node_exporter_delegation | default(inventory_hostname) }}"
check_mode: false

- name: Unpack node_exporter binary
Expand All @@ -40,7 +40,7 @@
src: "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch }}.tar.gz"
dest: "/tmp"
creates: "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch }}/node_exporter"
delegate_to: "{{ node_exporter_delegation | default(inventory_hostname) }}"
delegate_to: "{{ node_exporter_delegation | default(inventory_hostname) }}"
check_mode: false

- name: Create /usr/local/bin
Expand Down
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
- node_exporter_configure
- node_exporter_run

- command: "/usr/local/bin/node_exporter --version &>/dev/stdout|grep 'version {{ node_exporter_version}}'|awk '{print $3}'"
- name: Gather currently installed node_exporter version (if any)
command: "/usr/local/bin/node_exporter --version &>/dev/stdout|grep 'version {{ node_exporter_version }}'|awk '{print $3}'"
args:
warn: no
register: node_exporter_current_version

- import_tasks: install.yml
Expand Down

0 comments on commit e422b5b

Please sign in to comment.