openstack-ansible-ops/elk_metrics_7x/roles/elastic_ilm/tasks/main.yml
Sam Choraria 4dba23288f Do not delegate ILM template & policy updates
There is no need to delegate API requests for ILM templates/policies to
the elasticsearch nodes. API requests to be made from the ansible host.

Change-Id: Ifa23fc624c04aa6441f704bf3305f4a397f11a22
2020-02-26 16:26:53 +00:00

12 lines
424 B
YAML

---
- include_tasks: "elastic_ilm_policy_template.yml"
when: ilm_policy_file_location is defined and ilm_policy_filename is defined and ilm_policy is defined
- block:
- name: Update policy and template when not upgrading
include_tasks: "elastic_ilm_update_policy.yml"
environment:
no_proxy: "{{ elastic_beat_no_proxy }},127.0.0.1"
run_once: True
when: (elk_package_state | default('present')) != "latest"