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

Commit

Permalink
Update: make delegate_to configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Feb 22, 2019
1 parent aa9dd25 commit bdde90a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ node_exporter_enabled_collectors:
# ignored-fs-types: "^(sys|proc|auto)fs$"

node_exporter_disabled_collectors: []

node_exporter_delegation: localhost
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: localhost
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: localhost
delegate_to: "{{ node_exporter_delegation | default(inventory_hostname) }}"
check_mode: false

- name: Create /usr/local/bin
Expand Down

0 comments on commit bdde90a

Please sign in to comment.