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

Commit ccb28f7

Browse files
sarphrampaulfantom
authored andcommitted
specify file name for dest in get_url call (#40)
tested on ansible v2.5.3 and v2.4.4 The unarchive step failed as the get_url dest path ended up being /tmp/$UUID so unarchive could not find the source file. Not sure if there's something specific in my setup that caused this to fail.
1 parent 42b40f5 commit ccb28f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
become: false
2222
get_url:
2323
url: "https://github.com/prometheus/node_exporter/releases/download/v{{ node_exporter_version }}/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.tar.gz"
24-
dest: "/tmp"
24+
dest: "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch_map[ansible_architecture] | default(ansible_architecture) }}.tar.gz"
2525
checksum: "sha256:{{ node_exporter_checksum }}"
2626
register: _download_binary
2727
until: _download_binary is succeeded

0 commit comments

Comments
 (0)