diff --git a/tasks/main.yml b/tasks/main.yml
index 962d6c8c4fcfbe6ef9e12cb1d0e3390e0574d886..b80f3a64378d170d4c9005cda6bbfaac0c51090a 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -8,16 +8,24 @@
 ---
 # file: roles/fluentd/tasks/main.yml
 
-- name: "Install Plugins"
-  command: td-agent-gem install {{ item }}
-  with_items:
-    - 'fluent-plugin-elasticsearch'
-    - 'fluent-plugin-record-reformer'
+- name: "FluentD Role"
+  set_fact: role_fluentd_started=true
+  tags: always
 
-- name: "Copy SSL Key"
-  copy:
-    src='{{ inventory_dir }}/files/ssl/td-agent/key.pem'
-    dest='/etc/ssl/td-agent/key.pem'
-    owner='root'
-    group='root'
-    mode=644
+- block:
+
+  - name: "Install Plugins"
+    command: td-agent-gem install {{ item }}
+    with_items:
+      - 'fluent-plugin-elasticsearch'
+      - 'fluent-plugin-record-reformer'
+
+  - name: "Copy SSL Key"
+    copy:
+      src='{{ inventory_dir }}/files/ssl/td-agent/key.pem'
+      dest='/etc/ssl/td-agent/key.pem'
+      owner='root'
+      group='root'
+      mode=644
+
+  when: '"fluentd" not in excluded_roles'