Do not re-download each time.
authorLuke Hoersten <luke@hoersten.org>
Sun, 24 May 2020 20:04:59 -0500
changeset 30 bf16f2477a11
parent 29 a0f74d2bb1d1
child 31 c51c4eaea2a7
Do not re-download each time.
prometheus/rpi-client/tasks/main.yaml
--- a/prometheus/rpi-client/tasks/main.yaml	Sat May 16 12:57:11 2020 -0500
+++ b/prometheus/rpi-client/tasks/main.yaml	Sun May 24 20:04:59 2020 -0500
@@ -8,7 +8,8 @@
   unarchive:
     src: "{{prometheus_client_rpi_src}}"
     remote_src: yes
-    dest: "/tmp/"
+    dest: "/tmp"
+    creates: "/tmp/{{prometheus_client_rpi_dest}}"
   notify: restart rpi_exporter
 
 - name: disable GPU temp scraping