Formatting and removal of unneccessary line
This commit is contained in:
parent
bc4ee9e0f1
commit
9b916ccaf5
2 changed files with 2 additions and 10 deletions
|
|
@ -16,5 +16,4 @@ es_pid_dir: "/var/run/elasticsearch"
|
|||
es_data_dirs: "/var/lib/elasticsearch"
|
||||
es_log_dir: "/var/log/elasticsearch"
|
||||
es_work_dir: "/tmp/elasticsearch"
|
||||
es_plugin_dir: "/usr/share/elasticsearch/plugins"
|
||||
es_proxy_port: 8080
|
||||
es_plugin_dir: "/usr/share/elasticsearch/plugins"
|
||||
|
|
@ -30,14 +30,7 @@
|
|||
- name: Install elasticsearch plugins
|
||||
#debug: var=item
|
||||
command: >
|
||||
{{es_home}}/bin/plugin install
|
||||
{{ item.plugin }}{% if item.version is defined and item.version != '' %}/{{ item.version }}{% endif %}
|
||||
{% if item.proxy_host is defined and item.proxy_host != '' and item.proxy_port is defined and item.proxy_port != ''%}
|
||||
-DproxyHost={{ item.proxy_host }} -DproxyPort={{ item.proxy_port }}
|
||||
{% elif es_proxy_host is defined and es_proxy_host != '' %}
|
||||
-DproxyHost={{ es_proxy_host }} -DproxyPort={{ es_proxy_port }}
|
||||
{% endif %}
|
||||
--silent
|
||||
{{es_home}}/bin/plugin install {{ item.plugin }}{% if item.version is defined and item.version != '' %}/{{ item.version }}{% endif %} {% if item.proxy_host is defined and item.proxy_host != '' and item.proxy_port is defined and item.proxy_port != ''%} -DproxyHost={{ item.proxy_host }} -DproxyPort={{ item.proxy_port }} {% elif es_proxy_host is defined and es_proxy_host != '' %} -DproxyHost={{ es_proxy_host }} -DproxyPort={{ es_proxy_port }} {% endif %} --silent
|
||||
register: plugin_installed
|
||||
failed_when: "'ERROR' in plugin_installed.stdout"
|
||||
changed_when: plugin_installed.rc == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue