mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 01:24:20 +01:00
Fix issues with systemd service
This commit is contained in:
@@ -42,7 +42,9 @@
|
||||
- name: Copy Systemd File for Instance
|
||||
template: src=systemd/elasticsearch.j2 dest={{instance_sysd_script}} mode=0644 force=yes
|
||||
when: use_system_d
|
||||
notify: restart elasticsearch
|
||||
notify:
|
||||
- reload systemd configuration
|
||||
- restart elasticsearch
|
||||
|
||||
#Copy the logging.yml
|
||||
- name: Copy Logging.yml File for Instance
|
||||
@@ -63,7 +65,7 @@
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Delete Default Sysconfig File
|
||||
file: dest=/usr/lib/systemd/system/elasticsearch.service state=absent
|
||||
file: dest="{{ sysd_script }}" state=absent
|
||||
|
||||
- name: Delete Default Configuration File
|
||||
file: dest=/etc/elasticsearch/elasticsearch.yml state=absent
|
||||
|
||||
Reference in New Issue
Block a user