Update install-elasticsearch.yml

service will now turn on at system startup.
service will be restarted at the end.
This commit is contained in:
James Tombleson 2019-04-19 09:16:55 -07:00
parent e38755d897
commit 6f8d66a2fe
1 changed files with 6 additions and 1 deletions

View File

@ -63,10 +63,15 @@
systemd:
daemon_reload: yes
- name: Start ElasticSearch
- name: systemd - enable ElasticSearch on startup
become: true
systemd:
name: elasticsearch
enabled: yes
- name: systemd - restart ElasticSearch service
become: true
systemd:
name: elasticsearch
state: restarted