From 9fc4ddfac43137f3f3edb3682c88ad505158971b Mon Sep 17 00:00:00 2001 From: Dale McDiarmid Date: Tue, 3 Jan 2017 16:05:11 +0000 Subject: [PATCH] Send contents correctly --- handlers/elasticsearch-templates.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/elasticsearch-templates.yml b/handlers/elasticsearch-templates.yml index c789541..4595ef6 100644 --- a/handlers/elasticsearch-templates.yml +++ b/handlers/elasticsearch-templates.yml @@ -16,7 +16,7 @@ method: PUT status_code: 200 body_format: json - body: "{{ item.stdout }}" + body: "{{ lookup('file', item.path) }}" when: not es_enable_xpack or not es_xpack_features is defined or not '"shield" in es_xpack_features' with_items: "{{ templates.files }}" @@ -29,6 +29,6 @@ password: "{{es_api_basic_auth_password}}" force_basic_auth: yes body_format: json - body: "{{ item.stdout }}" + body: "{{ lookup('file', item.path) }}" when: es_enable_xpack and es_xpack_features is defined and '"shield" in es_xpack_features' with_items: "{{ templates.files }}"