Correct handling of map in template
This commit is contained in:
parent
d34d5e6103
commit
d25fc792b6
19 changed files with 116 additions and 447 deletions
|
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
|
||||
- set_fact: instance_default_file={{default_file | dirname}}/{{es_instance_name}}_{{default_file | basename}}
|
||||
- set_fact: instance_init_script={{init_script | dirname }}/{{es_instance_name}}_{{init_script | basename}}
|
||||
- set_fact: instance_config_directory={{ es_conf_dir }}/{{es_instance_name}}
|
||||
|
||||
- debug: msg="Node configuration {{ es_config }} "
|
||||
- set_fact: instance_default_file={{default_file | dirname}}/{{es_config["node_name_prefix"]}}{{default_file | basename}}
|
||||
- set_fact: instance_init_script={{init_script | dirname }}/{{es_config['node_name_prefix']}}{{init_script | basename}}
|
||||
- set_fact: instance_config_directory={{ es_conf_dir }}/{{es_config['node_name_prefix']}}elasticsearch
|
||||
|
||||
|
||||
|
||||
# Install OS specific elasticsearch - this can be abbreviated in version 2.0.0
|
||||
- name: Include specific Elasticsearch
|
||||
|
|
@ -19,6 +19,9 @@
|
|||
- name: Elasticsearch configuration
|
||||
include: elasticsearch-config.yml
|
||||
|
||||
#We remove the node.name key as it may be set by another node on the same server
|
||||
|
||||
|
||||
# Make sure the service is started, and restart if necessary
|
||||
- name: Start elasticsearch service
|
||||
service: name={{instance_init_script | basename}} state=started
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue