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

View File

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