|
|
|
@ -41,7 +41,7 @@
|
|
|
|
delegate_to: localhost
|
|
|
|
delegate_to: localhost
|
|
|
|
block:
|
|
|
|
block:
|
|
|
|
- name: "Dashboards: Get all searches in elasticsearch"
|
|
|
|
- name: "Dashboards: Get all searches in elasticsearch"
|
|
|
|
delegate_to: localhost
|
|
|
|
delegate_to: localhost
|
|
|
|
uri:
|
|
|
|
uri:
|
|
|
|
url: "https://{{ api_endpoint }}/s/{{ es_space }}/api/saved_objects/_find?per_page=10000&type=search"
|
|
|
|
url: "https://{{ api_endpoint }}/s/{{ es_space }}/api/saved_objects/_find?per_page=10000&type=search"
|
|
|
|
method: GET
|
|
|
|
method: GET
|
|
|
|
@ -70,11 +70,13 @@
|
|
|
|
panelindex_uuid: '{{ elastic_dashboard.references[0].search_refname | to_uuid }}'
|
|
|
|
panelindex_uuid: '{{ elastic_dashboard.references[0].search_refname | to_uuid }}'
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Doing evil string concatination with ansible in addition with variables"
|
|
|
|
- name: "Doing evil string concatination with ansible in addition with variables"
|
|
|
|
delegate_to: localhost
|
|
|
|
delegate_to: localhost
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
|
panelsJSON: '{{ (''[{"version":"7.16.1","type":"search","gridData":{"x":0,"y":0,"w":48,"h":28,"i":"'' + ( panelindex_uuid | string ) + ''"},"panelIndex":"'' + ( panelindex_uuid | string ) + ''","embeddableConfig":{"enhancements":{}},"panelRefName":"panel_'' + ( panelindex_uuid | string ) + ''"}]'') | string }}'
|
|
|
|
panelsJSON: '{{ (''[{"version":"7.16.1","type":"search","gridData":{"x":0,"y":0,"w":48,"h":28,"i":"'' + ( panelindex_uuid | string ) + ''"},"panelIndex":"'' + ( panelindex_uuid | string ) + ''","embeddableConfig":{"enhancements":{}},"panelRefName":"panel_'' + ( panelindex_uuid | string ) + ''"}]'') | string }}'
|
|
|
|
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
-
|
|
|
|
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
set_fact:
|
|
|
|
ref_obj_modified:
|
|
|
|
ref_obj_modified:
|
|
|
|
attributes:
|
|
|
|
attributes:
|
|
|
|
title: '{{ elastic_dashboard.attributes.title }}'
|
|
|
|
title: '{{ elastic_dashboard.attributes.title }}'
|
|
|
|
@ -82,7 +84,6 @@
|
|
|
|
references:
|
|
|
|
references:
|
|
|
|
-
|
|
|
|
-
|
|
|
|
name: '{{ panelindex_uuid }}'
|
|
|
|
name: '{{ panelindex_uuid }}'
|
|
|
|
delegate_to: localhost
|
|
|
|
|
|
|
|
type: 'search'
|
|
|
|
type: 'search'
|
|
|
|
id: '{{ lookup_search_object[0].id }}'
|
|
|
|
id: '{{ lookup_search_object[0].id }}'
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
|