mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
PHRAS-1843 Add elasticsearch host setting in vars/all.yml file (#2791)
This commit is contained in:
@@ -38,11 +38,15 @@
|
|||||||
when: not is_installed
|
when: not is_installed
|
||||||
with_items: "{{ elasticsearch.plugins }}"
|
with_items: "{{ elasticsearch.plugins }}"
|
||||||
|
|
||||||
- name: Set port
|
- name: Configure Elasticsearch.
|
||||||
replace: >
|
lineinfile:
|
||||||
dest="/etc/elasticsearch/elasticsearch.yml"
|
dest: /etc/elasticsearch/elasticsearch.yml
|
||||||
regexp='^#?(http\.port\:).*'
|
regexp: "{{ item.regexp }}"
|
||||||
replace='\1 {{ elasticsearch.port }}'
|
line: "{{ item.line }}"
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
|
- { regexp: '^#? ?network\.host', line: 'network.host: {{ elasticsearch.host }}' }
|
||||||
|
- { regexp: '^#? ?http\.port', line: 'http.port: {{ elasticsearch.port }}' }
|
||||||
|
|
||||||
- name: Flush handlers to apply config changes
|
- name: Flush handlers to apply config changes
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ mariadb:
|
|||||||
dump: ''
|
dump: ''
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
install: '1'
|
install: '1'
|
||||||
|
host: '127.0.0.1'
|
||||||
port: '9200'
|
port: '9200'
|
||||||
version: '2.3.3'
|
version: '2.3.3'
|
||||||
plugins:
|
plugins:
|
||||||
|
|||||||
Reference in New Issue
Block a user