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

Commit 2b3402d

Browse files
authored
set file mode explicitly when downloading binary
Set file mode explicitly when downloading binary because the default mode has changed after this [security fix](ansible/ansible#67794) was introduced in ansible. Fixes: #177.
1 parent 2c0357f commit 2b3402d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/install.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
url: "https://github.com/prometheus/node_exporter/releases/download/v{{ node_exporter_version }}/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch }}.tar.gz"
2525
dest: "/tmp/node_exporter-{{ node_exporter_version }}.linux-{{ go_arch }}.tar.gz"
2626
checksum: "sha256:{{ node_exporter_checksum }}"
27+
mode: '0666'
2728
register: _download_binary
2829
until: _download_binary is succeeded
2930
retries: 5

0 commit comments

Comments
 (0)