From 6f8d66a2fe14fa3dfdc9a69d021e2f79b8c44934 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Fri, 19 Apr 2019 09:16:55 -0700 Subject: [PATCH] Update install-elasticsearch.yml service will now turn on at system startup. service will be restarted at the end. --- playbook/linux/elastic/install-elasticsearch.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playbook/linux/elastic/install-elasticsearch.yml b/playbook/linux/elastic/install-elasticsearch.yml index 1f38dbf..3d17d2b 100644 --- a/playbook/linux/elastic/install-elasticsearch.yml +++ b/playbook/linux/elastic/install-elasticsearch.yml @@ -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