From a819e5f5667f30b7dfe15e1781c2ef64f43fb777 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Tue, 11 Jun 2019 18:35:54 +0200
Subject: [PATCH] ansible-playbooks/general#85 Linting

---
 meta/main.yml           | 16 ++++++++--------
 tasks/main.yml          |  4 ++--
 tasks/serverdensity.yml |  3 ++-
 3 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/meta/main.yml b/meta/main.yml
index 8acf826..f2d44cf 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -5,14 +5,14 @@ galaxy_info:
   company: "PARAGON Executive Services GmbH"
   min_ansible_version: 1.5
   platforms:
-   - name: Ubuntu
-     versions:
-      - precise
-      - quantal
-      - raring
-      - saucy
-      - trusty
+    - name: Ubuntu
+      versions:
+        - precise
+        - quantal
+        - raring
+        - saucy
+        - trusty
   categories:
-   - monitoring
+    - monitoring
 
 dependencies: []
diff --git a/tasks/main.yml b/tasks/main.yml
index cef1b35..e10ca33 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -9,7 +9,7 @@
 
 - block:
 
-  - import_tasks: serverdensity.yml
-    when: sd_api_token != ''
+    - import_tasks: serverdensity.yml
+      when: sd_api_token != ''
 
   when: not excluded_roles or "serverdensity" not in excluded_roles
diff --git a/tasks/serverdensity.yml b/tasks/serverdensity.yml
index 5c02d2c..79b7e7f 100644
--- a/tasks/serverdensity.yml
+++ b/tasks/serverdensity.yml
@@ -5,11 +5,12 @@
   when: sd_uninstallv1
 
 - name: Init SD plugin
-  local_action: serverdensity
+  serverdensity:
     api_token: '{{ sd_api_token }}'
     cleanup: '{{ sd_alert_cleanup }}'
     force: '{{ sd_force_update }}'
     cache: '{{ sd_api_cache_file }}'
+  delegate_to: localhost
   when: sd_update_remote
 
 - name: Install Public Repo Key
-- 
GitLab