Add api scheme based on http_ssl variable

This commit is contained in:
Nathan Young 2019-10-11 17:16:35 +01:00
parent a1a190feb7
commit 5da76a85c7
No known key found for this signature in database
GPG key ID: EB5E14327B10D023
5 changed files with 18 additions and 11 deletions

View file

@ -2,7 +2,7 @@
- name: Activate ES license (with security authentication)
uri:
method: PUT
url: "http://{{es_api_host}}:{{es_api_port}}/_xpack/license?acknowledge=true"
url: "{{ es_api_uri }}/_xpack/license?acknowledge=true"
user: "{{es_api_basic_auth_username | default(omit)}}"
password: "{{es_api_basic_auth_password | default(omit)}}"
body_format: json