File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,15 @@ elasticsearch_url: "http://localhost:9200"
124124
125125Elasticsearch server address.
126126
127+ ` ` ` yaml
128+ zammad_force_es_searchindex_rebuild: false
129+ ` ` `
130+
131+ By default, the Elasticsearch indexes are only rebuilt during the initial
132+ installation.
133+ Set this variable to `true` to force Ansible to trigger the rebuild of the
134+ Zammad search index when Zammad is updated.
135+
127136# # Dependencies
128137
129138Zammad requires Elasticsearch and PostgreSQL database server.
Original file line number Diff line number Diff line change @@ -15,5 +15,7 @@ zammad_ssl_key_path: "/etc/ssl/private/zammad_key.pem"
1515zammad_nginx_additional_server_configs : []
1616zammad_nginx_server_tokens : " off"
1717
18+ zammad_force_es_searchindex_rebuild : false
19+
1820elasticsearch_url : " http://localhost:9200"
1921...
Original file line number Diff line number Diff line change 1717- name : " Build search index"
1818 ansible.builtin.command : " zammad run rake zammad:searchindex:rebuild"
1919 changed_when : true
20+ when : " not __zammad_is_installed or zammad_force_es_searchindex_rebuild"
2021
2122...
Original file line number Diff line number Diff line change 4343 update_cache : true
4444 mode : " 0644"
4545
46+ - name : " Gather the package facts to check wether Zammad has already been installed"
47+ ansible.builtin.package_facts :
48+ manager : " auto"
49+
50+ - name : " Check if Zammad is already installed"
51+ ansible.builtin.set_fact :
52+ __zammad_is_installed : " {{ 'zammad' in ansible_facts.packages }}"
53+
4654- name : " Install | Install Zammad package"
4755 ansible.builtin.package :
4856 name : " zammad={{ zammad_version }}*"
You can’t perform that action at this time.
0 commit comments