Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/zammad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ configuring multiple domains or the redirection of outdated domains to the
most recent one.

```yaml
elasticsearch_url: "http://localhost:9200"
zammad_elasticsearch_url: "http://localhost:9200"
```

Elasticsearch server address.
Expand Down
2 changes: 1 addition & 1 deletion roles/zammad/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

- name: "Set Elasticsearch server address"
ansible.builtin.command: >-
zammad run rails r "Setting.set('es_url', '{{ elasticsearch_url | quote }}')"
zammad run rails r "Setting.set('es_url', '{{ zammad_elasticsearch_url | quote }}')"
changed_when: true

- name: "Build search index"
Expand Down
12 changes: 12 additions & 0 deletions roles/zammad/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@

---

- name: "Variable elasticsearch_url is deprecated"
ansible.builtin.debug:
msg:
- "The variable elasticsearch_url is deprecated and will be removed in the next major release."
- "Please use zammad_elasticsearch_url instead"
when: "elasticsearch_url is defined and elasticsearch_url | length > 0"

- name: "Set variable zammad_elasticsearch_url for backwards compatibility"
ansible.builtin.set_fact:
zammad_elasticsearch_url: "{{ elasticsearch_url }}"
when: "elasticsearch_url is defined and elasticsearch_url | length > 0"

- name: "Configure Zammad repository for Centos-like"
when: "ansible_distribution | lower == 'centos'"
block:
Expand Down
Loading