From 77e65a578062d2b755ca2f8bf4cfb12fc968f227 Mon Sep 17 00:00:00 2001 From: Waldek Maleska Date: Wed, 24 Feb 2021 16:03:06 +0000 Subject: [PATCH] download loki binaries on the target system this has the downside of taking up a bit of space, but at least this makes the role more idempotent when it comes to re-running it from different control nodes (e.g. in CI) --- tasks/install.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index 467c5c2..3a83b08 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -49,7 +49,6 @@ retries: 5 delay: 2 loop: "{{ loki_bins }}" - delegate_to: localhost check_mode: false - name: unpack binaries @@ -59,7 +58,6 @@ dest: "/tmp" creates: "/tmp/{{ item }}-{{ loki_version }}-linux-{{ go_arch }}" loop: "{{ loki_bins }}" - delegate_to: localhost check_mode: false - name: propagate official binaries @@ -69,6 +67,7 @@ mode: 0755 owner: root group: root + remote_src: true loop: "{{ loki_bins }}" notify: - restart loki