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

Commit 7eb009e

Browse files
always import install.yml when using local dir (#162)
[patch] release
1 parent 2765dc5 commit 7eb009e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
- import_tasks: install.yml
99
become: true
10-
when: (not __node_exporter_is_installed.stat.exists) or (__node_exporter_current_version_output.stderr_lines[0].split(" ")[2] != node_exporter_version)
10+
when:
11+
( not __node_exporter_is_installed.stat.exists ) or
12+
( __node_exporter_current_version_output.stderr_lines[0].split(" ")[2] != node_exporter_version ) or
13+
( node_exporter_binary_local_dir | length > 0 )
1114
tags:
1215
- node_exporter_install
1316

0 commit comments

Comments
 (0)