Fix generation of OpenSearch Dashboards config
The opensearch config playbook was iterating over opensearch_services, generating a file named opensearch-dashboards.yml containing an empty JSON dictionary. The next task was generating opensearch_dashboards.yml which is actually used by OpenSearch Dashboards. Remove with_dict in the first task to only generate opensearch.yml. Change-Id: I39cf74916630d27cd34ce0783ba8c3c0d20bbddc
This commit is contained in:
parent
58b2e4621a
commit
a2739db0e8
@ -29,22 +29,21 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart {{ item.key }} container
|
- Restart {{ item.key }} container
|
||||||
|
|
||||||
- name: Copying over opensearch service config files
|
- name: Copying over opensearch service config file
|
||||||
merge_yaml:
|
merge_yaml:
|
||||||
sources:
|
sources:
|
||||||
- "{{ role_path }}/templates/{{ item.key }}.yml.j2"
|
- "{{ role_path }}/templates/opensearch.yml.j2"
|
||||||
- "{{ node_custom_config }}/opensearch.yml"
|
- "{{ node_custom_config }}/opensearch.yml"
|
||||||
- "{{ node_custom_config }}/opensearch/{{ item.key }}.yml"
|
- "{{ node_custom_config }}/opensearch/opensearch.yml"
|
||||||
- "{{ node_custom_config }}/opensearch/{{ inventory_hostname }}/{{ item.key }}.yml"
|
- "{{ node_custom_config }}/opensearch/{{ inventory_hostname }}/opensearch.yml"
|
||||||
dest: "{{ node_config_directory }}/{{ item.key }}/{{ item.key }}.yml"
|
dest: "{{ node_config_directory }}/opensearch/opensearch.yml"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- inventory_hostname in groups[item.value.group]
|
- inventory_hostname in groups['opensearch']
|
||||||
- item.value.enabled | bool
|
- opensearch_services['opensearch'].enabled | bool
|
||||||
with_dict: "{{ opensearch_services }}"
|
|
||||||
notify:
|
notify:
|
||||||
- Restart {{ item.key }} container
|
- Restart opensearch container
|
||||||
|
|
||||||
- name: Copying over opensearch-dashboards config file
|
- name: Copying over opensearch-dashboards config file
|
||||||
vars:
|
vars:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user