Commit 6705be85 authored by Jürgen Haas's avatar Jürgen Haas
parent c7762a03
......@@ -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'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment