File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ configuring multiple domains or the redirection of outdated domains to the
119119most recent one.
120120
121121` ` ` yaml
122- elasticsearch_url : "http://localhost:9200"
122+ zammad_elasticsearch_url : "http://localhost:9200"
123123` ` `
124124
125125Elasticsearch server address.
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ zammad_ssl_key_path: "/etc/ssl/private/zammad_key.pem"
1515zammad_nginx_additional_server_configs : []
1616zammad_nginx_server_tokens : " off"
1717
18- elasticsearch_url : " http://localhost:9200"
18+ zammad_elasticsearch_url : " http://localhost:9200"
1919...
Original file line number Diff line number Diff line change 1111
1212- name : " Set Elasticsearch server address"
1313 ansible.builtin.command : >-
14- zammad run rails r "Setting.set('es_url', '{{ elasticsearch_url | quote }}')"
14+ zammad run rails r "Setting.set('es_url', '{{ zammad_elasticsearch_url | quote }}')"
1515 changed_when : true
1616
1717- name : " Build search index"
Original file line number Diff line number Diff line change 55
66---
77
8+ - name : " Variable elasticsearch_url is deprecated"
9+ ansible.builtin.debug :
10+ msg :
11+ - " The variable elasticsearch_url is deprecated and will be removed in the next major release."
12+ - " Please use zammad_elasticsearch_url instead"
13+ when : " elasticsearch_url is defined and elasticsearch_url | length > 0"
14+
15+ - name : " Set variable zammad_elasticsearch_url for backwards compatibility"
16+ ansible.builtin.set_fact :
17+ zammad_elasticsearch_url : " {{ elasticsearch_url }}"
18+ when : " elasticsearch_url is defined and elasticsearch_url | length > 0"
19+
820- name : " Configure Zammad repository for Centos-like"
921 when : " ansible_distribution | lower == 'centos'"
1022 block :
You can’t perform that action at this time.
0 commit comments