Commit 330300cc authored by Jürgen Haas's avatar Jürgen Haas
parent b7697c40
fluentd_cert_passphrase: ''
fluentd_cert_passphrase:
---
# 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
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