Send contents correctly
This commit is contained in:
parent
7794ab7f50
commit
9fc4ddfac4
1 changed files with 2 additions and 2 deletions
|
|
@ -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 }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue