Control restarts via systemd
This commit is contained in:
parent
fd4b90f43d
commit
ca60540f15
4 changed files with 19 additions and 20 deletions
|
@ -39,6 +39,13 @@
|
|||
replace: -Xmx{{ (ansible_memtotal_mb / 1024 * 0.5) | round | int }}g
|
||||
notify: restart opensearch
|
||||
|
||||
- name: Copy systemd override
|
||||
ansible.builtin.copy:
|
||||
src: systemd/override.conf
|
||||
dest: /etc/systemd/system/opensearch.service.d/
|
||||
mode: "0644"
|
||||
notify: restart opensearch
|
||||
|
||||
- name: "Opensearch | Start opensearch"
|
||||
ansible.builtin.systemd:
|
||||
name: opensearch
|
||||
|
@ -46,15 +53,9 @@
|
|||
state: started
|
||||
daemon_reload: true
|
||||
|
||||
- name: "Opensearch | Enable Monit monitoring"
|
||||
ansible.builtin.template:
|
||||
src: opensearch.monit.j2
|
||||
dest: /etc/monit/conf-enabled/opensearch
|
||||
mode: "0644"
|
||||
notify: reload monit
|
||||
|
||||
- name: "Opensearch | Copy update script"
|
||||
ansible.builtin.template:
|
||||
src: update-opensearch-plugins.j2
|
||||
dest: "/usr/local/bin/{{ opensearch_plugin_update_script }}"
|
||||
mode: "0755"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue