browbeat/ansible/install/roles/curator/tasks/main.yml
Will Foster 5f5ee56b4b Add optional curator ES index management tool.
This satisfies a request from the original upstream ansible-elk
playbook to add curator.  Curator is the recommended tool for
managing Elasticsearch indexes.

This optional playbook will install curator on the ELK stack node.
To activate this functionality, set the following variable:

install_curator_tool: true

The default option is to set this to false, blank or anything but
'true'.

https://github.com/sadsfae/ansible-elk/issues/4
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html

Patchset #2: update README.srt documentation.
Patchset #3: changed to a boolean value for install_curator_tool
Patchset #4: update commit message

Documentation update here:
ttp://rst.ninjs.org/?n=ff7d6c5da70ba656717633b304981532&theme=basic

Change-Id: I12a7662a9fd27671160f3ca10ee37b5f73df4459
2016-06-21 15:30:54 +01:00

29 lines
595 B
YAML

---
#
# install curator tool for managing elasticsearch
#
- name: Copy curator yum repo file
copy:
src=curator.repo
dest=/etc/yum.repos.d/curator.repo
owner=root
group=root
mode=0644
become: true
when: install_curator_tool
- name: Import curator GPG Key
rpm_key: key=http://packages.elastic.co/GPG-KEY-elasticsearch
state=present
when: install_curator_tool
- name: Install curator and python-setuptools
yum: name={{ item }} state=present
become: true
with_items:
- python-elasticsearch-curator
- python-setuptools
when: install_curator_tool