Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15bd984

Browse files
committed
Fix fluent-plugin-elasticsearch installation (needs libcurl). [ci skip]
1 parent 58f6d88 commit 15bd984

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

roles/td_agent/tasks/main.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,28 @@
1010
when:
1111
- ansible_distribution == "Debian"
1212
- ansible_distribution_release == "wheezy"
13+
tags: tdagent
1314

14-
- name: install td-agent via apt
15-
apt: pkg=td-agent update_cache=yes force=yes
15+
- name: install td-agent and libcurl via apt
16+
apt: pkg={{ item }} update_cache=yes force=yes
17+
with_items:
18+
- td-agent
19+
- libcurl3
20+
- libcurl3-gnutls
21+
- libcurl4-openssl-dev
1622
tags: tdagent
1723

18-
- name: remove older fluent Elasticsearch plugin versions
19-
command: rm -Rf /usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-elasticsearch-0.1.*
24+
- name: remove older fluent Elasticsearch plugin versions v0.1.*
25+
shell: rm -Rf /usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-elasticsearch-0.1.*
2026
ignore_errors: yes
27+
tags: tdagent
28+
29+
- name: remove older fluent Elasticsearch plugin versions v0.2.0
30+
command: removes=/usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-elasticsearch-0.2.0 rm -Rf /usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-elasticsearch-0.2.0
31+
tags: tdagent
2132

2233
- name: install the fluent Elasticsearch plugin
23-
command: creates=/usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-elasticsearch-0.2.0/Gemfile /usr/lib/fluent/ruby/bin/fluent-gem install fluent-plugin-elasticsearch
34+
command: creates=/usr/lib/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-elasticsearch-0.3.0/Gemfile /usr/lib/fluent/ruby/bin/fluent-gem install fluent-plugin-elasticsearch
2435
tags: tdagent
2536

2637
- name: install the fluent tail-multiline plugin

0 commit comments

Comments
 (0)