From 70f1411ae393d080c05b2ae5636424fb89460e75 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Mon, 20 Jul 2020 11:59:49 +0200 Subject: [PATCH] Use localhost to fetch checksums Avoid fetching checksums on every node by delegating the checksum fetch to localhost. Fixes: https://github.com/cloudalchemy/ansible-node-exporter/issues/165 [fix] Signed-off-by: Ben Kochie --- tasks/preflight.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/preflight.yml b/tasks/preflight.yml index 3d9e770..da1ef47 100644 --- a/tasks/preflight.yml +++ b/tasks/preflight.yml @@ -107,4 +107,5 @@ with_items: "{{ _checksums }}" when: - "('linux-' + go_arch + '.tar.gz') in item" + delegate_to: localhost when: node_exporter_binary_local_dir | length == 0