]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ansible-lint: Use delegate_to: localhost 236/head
authorZack Cerza <zack@redhat.com>
Tue, 4 Jun 2019 23:32:36 +0000 (17:32 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 4 Jun 2019 23:34:12 +0000 (17:34 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-grafana/tasks/push_dashboards.yml
ansible/roles/ceph-node-exporter/tasks/download.yml

index 2672066f93f476f7f04fafd67911e120216770e3..9f964812a26c736cc88912ea56e956d6429231d9 100644 (file)
@@ -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
index 655367a3c95e468e179aebab7c7b8762dc3dfe86..3a75609b49d111094fd12dbb160e8d1b4502efcc 100644 (file)
@@ -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