diff --git a/tasks/main.yml b/tasks/main.yml index e73b71cdedec2f5bf77298cca27d4a4caa6be15e..db352d29fbd14c0ec9eb43cc2e422fea1d2d6a30 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,19 +9,19 @@ - block: - - name: Install Plugins - command: td-agent-gem install {{ item }} - with_items: - - fluent-plugin-elasticsearch - - fluent-plugin-elasticsearch-timestamp-check - - fluent-plugin-kvp-filter + - name: Install Plugins + command: td-agent-gem install {{ item }} + with_items: + - fluent-plugin-elasticsearch + - fluent-plugin-elasticsearch-timestamp-check + - fluent-plugin-kvp-filter - - 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' + - 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: not excluded_roles or "fluentd" not in excluded_roles and inventory_hostname in groups.logserver