Role Detail


Elasticsearch curator for Linux.
Type Ansible
Minimum Ansible Version 1.8
Installation $ ansible-galaxy install geerlingguy.elasticsearch-curator
Last Commit 2017-04-02 03:53:03 AM UTC
Last Imported 2017-04-02 04:32:04 AM UTC
Version History
Version Release Date
1.0.7 2016-08-30 03:47:03 AM
1.0.6 2015-08-14 03:52:03 AM
1.0.5 2015-08-14 03:39:03 AM
1.0.4 2015-06-30 03:22:03 AM
1.0.3 2015-05-19 15:42:03 PM
1.0.2 2015-03-01 03:36:03 AM
1.0.1 2014-08-28 15:58:03 PM
1.0.0 2014-08-28 14:20:02 PM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 5
EL 6
EL 7
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Last 10 Imports
Completed Status
2017-04-02 04:32:04 AM UTC SUCCESS
2017-03-16 09:33:09 AM UTC SUCCESS
2017-03-15 16:40:04 PM UTC SUCCESS
2017-01-22 02:29:02 AM UTC SUCCESS
2016-11-23 15:30:03 PM UTC SUCCESS
2016-11-02 20:20:08 PM UTC SUCCESS
2016-10-18 23:10:11 PM UTC SUCCESS
2016-09-25 21:14:09 PM UTC SUCCESS
2016-09-01 01:58:01 AM UTC SUCCESS
2016-08-30 03:51:03 AM UTC SUCCESS

Ansible Role: Elasticsearch Curator

Build Status

An Ansible Role that installs Elasticsearch Curator on RedHat/CentOS or Debian/Ubuntu.


None, but it's a lot more helpful if you have Elasticsearch running somewhere :)

On RedHat/CentOS, make sure you have the EPEL repository configured, so the python-pip package can be installed. You can install the EPEL repo by simply adding geerlingguy.repo-epel to your playbook's roles.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

  - {
    name: "Delete old elasticsearch indices.",
    job: "/usr/local/bin/curator delete --older-than 30",
    minute: "0",
    hour: "1"
  - {
    name: "Close old elasticsearch indices.",
    job: "/usr/local/bin/curator close --older-than 14",
    minute: "30",
    hour: "1"

A list of cron jobs to use curator to prune, optimize, close, and otherwise maintain your Elasticsearch indexes. If you're connecting to an Elasticsearch server on a different host/port than localhost and 9200, you need to add --host [hostname] and/or --port [port] to the jobs. More documentation is available on the Elasticsearch Curator wiki. You can add any of minute, hour, day, weekday, and month to the cron jobs—values that are not explicitly set will default to *.


  • geerlingguy.repo-epel (RedHat/CentOS only)

Example Playbook

- hosts: search
    - { role: geerlingguy.elasticsearch-curator }



Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.