Edit ansible script for deploy kibana

Kibana deployment failed becaused of kibana_confs variable does not have attribute key,
So handlers failed to check conditional kibana_conf.changed | bool becaused of
kibana_confs.results|selectattr(item.key) does not exits.

Change variable name kibana_confs to kibana_conf.

Change-Id: If5e0a25b270a6f05c435a6dc32e2ac49406389c5
Closes-Bug: #1819246
This commit is contained in:
Duong Mai 2019-03-09 11:46:04 +07:00
parent f637d139d2
commit 2519451696
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@
service_name: "kibana"
service: "{{ kibana_services[service_name] }}"
config_json: "{{ kibana_config_jsons.results|selectattr('item.key', 'equalto', service_name)|first }}"
kibana_conf: "{{ kibana_confs.results|selectattr('item.key', 'equalto', service_name)|first }}"
kibana_container: "{{ check_kibana_containers.results|selectattr('item.key', 'equalto', service_name)|first }}"
become: true
kolla_docker:

View File

@ -34,7 +34,7 @@
dest: "{{ node_config_directory }}/kibana/kibana.yml"
mode: "0660"
become: true
register: kibana_confs
register: kibana_conf
with_first_found:
- "{{ node_custom_config }}/kibana/{{ inventory_hostname }}/kibana.yml"
- "{{ node_custom_config }}/kibana/kibana.yml"