Removing ssl configuration

This commit is contained in:
Jeffrey Everling 2018-05-05 08:00:38 +02:00
parent ff9a64ba56
commit 796731721c
8 changed files with 18 additions and 186 deletions

View file

@ -21,7 +21,7 @@
#List current users
- name: List Native Users
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/user"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/user
method: GET
user: "{{es_api_basic_auth_username}}"
password: "{{es_api_basic_auth_password}}"
@ -50,7 +50,7 @@
- name: Update API User Password
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{es_api_basic_auth_username}}/_password"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{es_api_basic_auth_username}}/_password
method: POST
body_format: json
body: "{ \"password\":\"{{native_users[es_api_basic_auth_username].password}}\" }"
@ -72,7 +72,7 @@
#Delete all non required users NOT inc. reserved
- name: Delete Native Users
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{item}}"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{item}}
method: DELETE
status_code: 200
user: "{{es_api_basic_auth_username}}"
@ -93,7 +93,7 @@
#Update password on all reserved users
- name: Update Reserved User Passwords
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{item}}/_password"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{item}}/_password
method: POST
body_format: json
body: "{ \"password\":\"{{native_users[item].password}}\" }"
@ -112,7 +112,7 @@
#Overwrite all other users NOT inc. those reserved
- name: Update Non-Reserved Native User Details
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{item}}"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/user/{{item}}
method: POST
body_format: json
body: "{{ native_users[item] | to_json }}"
@ -129,7 +129,7 @@
#List current roles not. inc those reserved
- name: List Native Roles
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/role"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/role
method: GET
body_format: json
user: "{{es_api_basic_auth_username}}"
@ -163,7 +163,7 @@
#Delete all non required roles NOT inc. reserved
- name: Delete Native Roles
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/role/{{item}}"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/role/{{item}}
method: DELETE
status_code: 200
user: "{{es_api_basic_auth_username}}"
@ -179,7 +179,7 @@
#Update other roles - NOT inc. reserved roles
- name: Update Native Roles
uri:
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/security/role/{{item}}"
url: http://{{es_api_host}}:{{es_api_port}}/_xpack/security/role/{{item}}
method: POST
body_format: json
body: "{{ es_roles.native[item] | to_json}}"

View file

@ -18,7 +18,7 @@
- name: Activate ES license (with security authentication)
uri:
method: PUT
url: "{{es_http_type}}://{{es_api_host}}:{{es_api_port}}/_xpack/license?acknowledge=true"
url: "http://{{es_api_host}}:{{es_api_port}}/_xpack/license?acknowledge=true"
user: "{{es_api_basic_auth_username}}"
password: "{{es_api_basic_auth_password}}"
body_format: json
@ -26,7 +26,7 @@
body: "{{ es_xpack_license }}"
return_content: yes
register: license_activated
no_log: false
no_log: True
when: "'security' in es_xpack_features"
failed_when: >
license_activated.status != 200 or