Send contents correctly

This commit is contained in:
Dale McDiarmid 2017-01-03 16:05:11 +00:00
parent 7794ab7f50
commit 9fc4ddfac4

View file

@ -16,7 +16,7 @@
method: PUT method: PUT
status_code: 200 status_code: 200
body_format: json 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' when: not es_enable_xpack or not es_xpack_features is defined or not '"shield" in es_xpack_features'
with_items: "{{ templates.files }}" with_items: "{{ templates.files }}"
@ -29,6 +29,6 @@
password: "{{es_api_basic_auth_password}}" password: "{{es_api_basic_auth_password}}"
force_basic_auth: yes force_basic_auth: yes
body_format: json 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' when: es_enable_xpack and es_xpack_features is defined and '"shield" in es_xpack_features'
with_items: "{{ templates.files }}" with_items: "{{ templates.files }}"