From 330300cc8569ffc15db64f594cd03d96b3ece2fc Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 10 Jun 2019 12:51:21 +0200
Subject: [PATCH] ansible-playbooks/general#85 Linting

---
 defaults/main.yml |  2 +-
 tasks/main.yml    | 20 +++++++++++---------
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/defaults/main.yml b/defaults/main.yml
index 6c205c3..ca36053 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1 +1 @@
-fluentd_cert_passphrase: ''
+fluentd_cert_passphrase:
diff --git a/tasks/main.yml b/tasks/main.yml
index 338bd21..e73b71c 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,20 +1,22 @@
 ---
 # file: roles/fluentd/tasks/main.yml
 
-- name: "FluentD Role"
-  set_fact: role_fluentd_started=true
-  tags: 'always'
+- name: FluentD Role
+  set_fact:
+    role_fluentd_started: yes
+  tags:
+    - always
 
 - block:
 
-  - name: "Install Plugins"
+  - name: Install Plugins
     command: td-agent-gem install {{ item }}
     with_items:
-      - 'fluent-plugin-elasticsearch'
-      - 'fluent-plugin-elasticsearch-timestamp-check'
-      - 'fluent-plugin-kvp-filter'
+      - fluent-plugin-elasticsearch
+      - fluent-plugin-elasticsearch-timestamp-check
+      - fluent-plugin-kvp-filter
 
-  - name: "Copy SSL Key"
+  - name: Copy SSL Key
     copy:
       src='{{ inventory_dir }}/files/ssl/td-agent/key.pem'
       dest='/etc/ssl/td-agent/key.pem'
@@ -22,4 +24,4 @@
       group='root'
       mode='644'
 
-  when: '"fluentd" not in excluded_roles and inventory_hostname in groups.logserver'
+  when: not excluded_roles or "fluentd" not in excluded_roles and inventory_hostname in groups.logserver
-- 
GitLab