elasticsearch_start_timeout parameter added for OD installation
This commit is contained in:
parent
60cc77f497
commit
04f3ec1aab
@ -10,6 +10,7 @@ elasticsearch_network_host: '0.0.0.0'
|
||||
elasticsearch_node_master: true
|
||||
elasticsearch_node_data: true
|
||||
elasticsearch_node_ingest: true
|
||||
elasticsearch_start_timeout: 90
|
||||
|
||||
elasticsearch_lower_disk_requirements: false
|
||||
elasticsearch_cluster_nodes:
|
||||
|
||||
@ -54,6 +54,14 @@
|
||||
notify: restart elasticsearch
|
||||
tags: install
|
||||
|
||||
- name: Ensure extra time for Elasticsearch to start on reboots
|
||||
ansible.builtin.lineinfile:
|
||||
path: /usr/lib/systemd/system/elasticsearch.service
|
||||
regexp: '^TimeoutStartSec='
|
||||
line: "TimeoutStartSec={{ elasticsearch_start_timeout }}"
|
||||
become: yes
|
||||
tags: configure
|
||||
|
||||
- name: Ensure Elasticsearch started and enabled
|
||||
service:
|
||||
name: elasticsearch
|
||||
@ -100,4 +108,10 @@
|
||||
|
||||
- import_tasks: "RMRedHat.yml"
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Reload systemd configuration
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
become: yes
|
||||
notify: restart elasticsearch
|
||||
when: perform_installation
|
||||
|
||||
Loading…
Reference in New Issue
Block a user