From: Zack Cerza Date: Tue, 4 Jun 2019 23:32:36 +0000 (-0600) Subject: ansible-lint: Use delegate_to: localhost X-Git-Tag: v2.0.3~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=874cc15047830f8d24eab7c290067a58ff80ce19;p=cephmetrics.git ansible-lint: Use delegate_to: localhost Signed-off-by: Zack Cerza --- 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