Merge "Explicitly use Elasticsearch data node for ILM index update"
This commit is contained in:
commit
80c4bc93b1
@ -16,3 +16,5 @@ default_ilm_policy:
|
|||||||
delete: {}
|
delete: {}
|
||||||
default_ilm_policy_filename: "default-ilm-policy.json"
|
default_ilm_policy_filename: "default-ilm-policy.json"
|
||||||
default_ilm_policy_file_location: "/tmp"
|
default_ilm_policy_file_location: "/tmp"
|
||||||
|
|
||||||
|
elastic_beat_no_proxy: "{{ hostvars[groups['elastic-logstash'][0]]['ansible_host'] }}"
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: Update policy and template when not upgrading
|
- name: Update policy and template when not upgrading
|
||||||
include_tasks: "elastic_ilm_update_policy.yml"
|
include_tasks: "elastic_ilm_update_policy.yml"
|
||||||
delegate_to: "{{ groups['elastic-logstash'][0] }}"
|
delegate_to: "{{ elasticsearch_data_node_details[0] | regex_replace(':' ~ elastic_port,'') }}"
|
||||||
environment:
|
environment:
|
||||||
no_proxy: "{{ hostvars[groups['elastic-logstash'][0]]['ansible_host'] }},127.0.0.1"
|
no_proxy: "{{ elastic_beat_no_proxy }},127.0.0.1"
|
||||||
run_once: True
|
run_once: True
|
||||||
when: (elk_package_state | default('present')) != "latest"
|
when: (elk_package_state | default('present')) != "latest"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user