DEV-315: fixed ansible error to get ansible-lint initially running

master
friedrich goerz 4 years ago committed by Görz, Friedrich
parent 591e40a283
commit 9ae762b6e1

@ -41,7 +41,7 @@
delegate_to: localhost
block:
- name: "Dashboards: Get all searches in elasticsearch"
delegate_to: localhost
delegate_to: localhost
uri:
url: "https://{{ api_endpoint }}/s/{{ es_space }}/api/saved_objects/_find?per_page=10000&type=search"
method: GET
@ -70,11 +70,13 @@
panelindex_uuid: '{{ elastic_dashboard.references[0].search_refname | to_uuid }}'
- name: "Doing evil string concatination with ansible in addition with variables"
delegate_to: localhost
delegate_to: localhost
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 }}'
- set_fact:
-
delegate_to: localhost
set_fact:
ref_obj_modified:
attributes:
title: '{{ elastic_dashboard.attributes.title }}'
@ -82,7 +84,6 @@
references:
-
name: '{{ panelindex_uuid }}'
delegate_to: localhost
type: 'search'
id: '{{ lookup_search_object[0].id }}'
when:

@ -40,7 +40,7 @@
delegate_to: localhost
block:
- name: "Get all indexpatterns in elasticsearch"
delegate_to: localhost
delegate_to: localhost
uri:
url: "https://{{ api_endpoint }}/s/{{ es_space }}/api/saved_objects/_find?per_page=10000&type=index-pattern"
method: GET
@ -65,12 +65,13 @@
- debug:
msg: 'lookup_indexpattern_object:{{ lookup_indexpattern_object }}'
- set_fact:
-
delegate_to: localhost
set_fact:
ref_obj_modified:
references:
-
name: '{{ elastic_search.references[0].name }}'
delegate_to: localhost
type: 'index-pattern'
id: '{{ lookup_indexpattern_object[0].id }}'
when:

Loading…
Cancel
Save