Use ini_file module for systemd overriding config file, better task naming and fix variable indentation
This commit is contained in:
parent
5994840c75
commit
5bac5a4dbf
1 changed files with 5 additions and 5 deletions
|
|
@ -26,13 +26,13 @@
|
|||
|
||||
#Copy the systemd specific file if systemd is installed
|
||||
- when: use_system_d and m_lock_enabled
|
||||
become: yes
|
||||
block:
|
||||
- name: Make sure destination dir exists
|
||||
file: path={{ sysd_config_file | dirname }} state=directory recurse=yes mode=0755
|
||||
file: path={{ sysd_config_file | dirname }} state=directory mode=0755
|
||||
|
||||
- name: Copy Systemd File for Instance
|
||||
become: yes
|
||||
copy: src=systemd/elasticsearch_override.conf dest={{ sysd_config_file }} mode=0644 force=yes
|
||||
- name: Copy specific ElasticSearch Systemd config file
|
||||
ini_file: path={{ sysd_config_file }} section=Service option=LimitMEMLOCK value=infinity mode=0644
|
||||
notify:
|
||||
- reload systemd configuration
|
||||
- restart elasticsearch
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
#Copy the logging.yml
|
||||
- name: Copy log4j2.properties File
|
||||
become: yes
|
||||
template: src={{es_config_log4j2}} dest={{ es_conf_dir }}/log4j2.properties owner={{ es_user }} group={{ es_group }} mode=0644 force=yes
|
||||
template: src={{ es_config_log4j2 }} dest={{ es_conf_dir }}/log4j2.properties owner={{ es_user }} group={{ es_group }} mode=0644 force=yes
|
||||
notify: restart elasticsearch
|
||||
|
||||
- name: Copy jvm.options File
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue