From 874cc15047830f8d24eab7c290067a58ff80ce19 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 4 Jun 2019 17:32:36 -0600 Subject: [PATCH] ansible-lint: Use delegate_to: localhost Signed-off-by: Zack Cerza --- ansible/roles/ceph-grafana/tasks/push_dashboards.yml | 4 ++-- ansible/roles/ceph-node-exporter/tasks/download.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/ceph-grafana/tasks/push_dashboards.yml b/ansible/roles/ceph-grafana/tasks/push_dashboards.yml index 2672066..9f96481 100644 --- a/ansible/roles/ceph-grafana/tasks/push_dashboards.yml +++ b/ansible/roles/ceph-grafana/tasks/push_dashboards.yml @@ -1,8 +1,8 @@ --- # 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 diff --git a/ansible/roles/ceph-node-exporter/tasks/download.yml b/ansible/roles/ceph-node-exporter/tasks/download.yml index 655367a..3a75609 100644 --- a/ansible/roles/ceph-node-exporter/tasks/download.yml +++ b/ansible/roles/ceph-node-exporter/tasks/download.yml @@ -3,8 +3,8 @@ # 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 -- 2.47.3