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

Use localhost to fetch checksums #169

Merged
merged 1 commit into from
Jul 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tasks/preflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@
with_items: "{{ _checksums }}"
when:
- "('linux-' + go_arch + '.tar.gz') in item"
delegate_to: localhost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen in mixed arch environment, when go_arch on one host is different from go_arch on the other?

Copy link
Collaborator Author

@SuperQ SuperQ Jul 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it still works, same way the binary download works with delegate_to and go_arch. The Ansible facts are per-node.

when: node_exporter_binary_local_dir | length == 0