mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03: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
|
||||
with_items: "{{ elasticsearch.plugins }}"
|
||||
|
||||
- name: Set port
|
||||
replace: >
|
||||
dest="/etc/elasticsearch/elasticsearch.yml"
|
||||
regexp='^#?(http\.port\:).*'
|
||||
replace='\1 {{ elasticsearch.port }}'
|
||||
- name: Configure Elasticsearch.
|
||||
lineinfile:
|
||||
dest: /etc/elasticsearch/elasticsearch.yml
|
||||
regexp: "{{ item.regexp }}"
|
||||
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
|
||||
meta: flush_handlers
|
||||
|
@@ -55,6 +55,7 @@ mariadb:
|
||||
dump: ''
|
||||
elasticsearch:
|
||||
install: '1'
|
||||
host: '127.0.0.1'
|
||||
port: '9200'
|
||||
version: '2.3.3'
|
||||
plugins:
|
||||
|
Reference in New Issue
Block a user