ansible-roles/filebeat/tasks/main.yml
Jérémy Lecour 11083007d6 refactoring of elastic roles
- extract java8
- extract elastic-source-list
2016-12-21 16:12:26 +01:00

29 lines
685 B
YAML

---
- name: Filebeat is installed
apt:
name: filebeat
update_cache: yes
state: installed
tags:
- packages
- name: Filebeat service is enabled
service:
name: filebeat
enabled: yes
- name: Kibana dashboards are imported
command: /usr/share/filebeat/scripts/import_dashboards
failed_when: '"fail" in stdout'
when: filebeat_kibana_dashboards
- name: is logstash-plugin available?
stat:
path: /usr/share/logstash/bin/logstash-plugin
register: logstash_plugin
- name: Logstash plugin is installed
command: /usr/share/logstash/bin/logstash-plugin install logstash-input-beats
when: filebeat_logstash_plugin and logstash_plugin.stat.exists