Signed-off-by: Zack Cerza <zack@redhat.com>
---
# First, look at our local filesystem for the dashboards we need to push.
- name: Stat dashboard files
- local_action:
- module: stat
+ delegate_to: localhost
+ stat:
path: "{{ item }}"
follow: true
get_attributes: false
# We use local_action here to reduce the amount of times we hit the GitHub
# API; without it, a moderately-large cluster could actually cause them to
# invoke their API rate limiting!
- local_action:
- module: uri
+ delegate_to: localhost
+ uri:
url: https://api.github.com/repos/prometheus/node_exporter/releases/latest
return_content: true
connection: local