File tree 4 files changed +14
-6
lines changed
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1
1
.kitchen /
2
- .kitchen.local.yml
3
2
* .lock
4
3
.vendor
5
4
.bundle
Original file line number Diff line number Diff line change 56
56
# Copy the instance specific init file
57
57
- name : Copy Debian Init File for Instance
58
58
template : src=init/debian/elasticsearch.j2 dest={{instance_init_script}} mode=0755 force=yes
59
- when : ansible_os_family == 'Debian'
59
+ when : ansible_os_family == 'Debian' and not use_system_d
60
60
notify : restart elasticsearch
61
61
62
62
# Copy the instance specific init file
63
63
- name : Copy Redhat Init File for Instance
64
64
template : src=init/redhat/elasticsearch.j2 dest={{instance_init_script}} mode=0755 force=yes
65
- when : ansible_os_family == 'RedHat'
65
+ when : ansible_os_family == 'RedHat' and not use_system_d
66
66
notify : restart elasticsearch
67
67
68
68
# Copy the systemd specific file if systemd is installed
Original file line number Diff line number Diff line change 7
7
8
8
- name : Create script dir
9
9
file : state=directory path={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
10
- when : es_config['path.scripts'] is defined
10
+
11
+ - name : Copy default scripts to elasticsearch
12
+ copy : src=scripts dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
13
+ when : es_scripts_fileglob is not defined
11
14
12
15
- name : Copy scripts to elasticsearch
13
16
copy : src={{ item }} dest={{ es_script_dir }} owner={{ es_user }} group={{ es_group }}
14
- with_fileglob : es_scripts_fileglob | default("scripts")
17
+ with_fileglob : es_scripts_fileglob
Original file line number Diff line number Diff line change 1
1
---
2
2
3
+ - file : path=/etc/elasticsearch/templates state=directory owner={{ es_user }} group={{ es_group }}
4
+
5
+ - name : Copy default templates to elasticsearch
6
+ copy : src=templates dest=/etc/elasticsearch/ owner={{ es_user }} group={{ es_group }}
7
+ when : es_templates_fileglob is not defined
8
+
3
9
- name : Copy templates to elasticsearch
4
10
copy : src={{ item }} dest=/etc/elasticsearch/ owner={{ es_user }} group={{ es_group }}
5
- with_fileglob : es_templates_fileglob | default("templates")
11
+ with_fileglob : es_templates_fileglob
6
12
7
13
- set_fact : http_port=9200
8
14
You can’t perform that action at this time.
0 commit comments