Roles for td-agent and td-agent-bit

This commit is contained in:
2016-12-18 17:04:42 -05:00
parent c26a0e2d21
commit a519e04791
13 changed files with 183 additions and 23 deletions

View File

@@ -0,0 +1,9 @@
---
# config for td-agent
- name: copy td-agent config
copy:
src: td.conf
dest: /etc/td-agent/td-agent.conf
notify:
- restart td-agent

View File

@@ -0,0 +1,12 @@
---
# tasks to install fluentd td-agent on ubuntu
- debug: var=ansible_distribution_release
- name: install to ubuntu
shell: curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-{{ ansible_distribution_release }}-td-agent2.sh | sh
args:
creates: "/usr/sbin/td-agent"
notify:
- restart td-agent

View File

@@ -0,0 +1,7 @@
---
# tasks to setup td-agent
- include: install.yml
- include: config.yml