Skip to content

Instantly share code, notes, and snippets.

@richlv
Created November 28, 2018 22:31
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 richlv/a92175f0aaae03dd4791ab6663a82f2d to your computer and use it in GitHub Desktop.
Save richlv/a92175f0aaae03dd4791ab6663a82f2d to your computer and use it in GitHub Desktop.
- name: "Create ES index that's missing"
local_action:
module: uri
url: 'http://{{es_server}}:9200/{{ls_segment}}-{{item.1.file}}-000001'
method: PUT
status_code: 200
body:
aliases:
"{{ls_segment}}-{{item.1.file}}_rollover": {}
body_format: json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment