Skip to content

Instantly share code, notes, and snippets.

@hakobera
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakobera/a8ee46282355fd3d0fc4 to your computer and use it in GitHub Desktop.
Save hakobera/a8ee46282355fd3d0fc4 to your computer and use it in GitHub Desktop.
ansible playbook of td-agent2 for Ubuntu 14.04
---
# based on http://toolbelt.treasuredata.com/sh/install-ubuntu-trusty-td-agent2.sh
- name: add apt key
apt_key: url=http://packages.treasuredata.com/GPG-KEY-td-agent state=present
- name: add apt repository
apt_repository: repo='deb [arch=amd64] http://packages.treasuredata.com/2/ubuntu/trusty/ trusty contrib' state=present
- name: install td-agent
apt: name=td-agent state=present
- name: start and enabled td-agent
service: name=td-agent state=started enabled=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment