URL encode items in path
This commit is contained in:
parent
27e3cff9a2
commit
2b0343e135
1 changed files with 4 additions and 4 deletions
|
|
@ -97,7 +97,7 @@
|
||||||
#Update password on all reserved users
|
#Update password on all reserved users
|
||||||
- name: Update Reserved User Passwords
|
- name: Update Reserved User Passwords
|
||||||
uri:
|
uri:
|
||||||
url: "{{ es_api_uri }}/{{ es_security_api }}/user/{{item}}/_password"
|
url: "{{ es_api_uri }}/{{ es_security_api }}/user/{{ item | urlencode }}/_password"
|
||||||
method: POST
|
method: POST
|
||||||
body_format: json
|
body_format: json
|
||||||
body: "{ \"password\":\"{{native_users[item].password}}\" }"
|
body: "{ \"password\":\"{{native_users[item].password}}\" }"
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
#Overwrite all other users NOT inc. those reserved
|
#Overwrite all other users NOT inc. those reserved
|
||||||
- name: Update Non-Reserved Native User Details
|
- name: Update Non-Reserved Native User Details
|
||||||
uri:
|
uri:
|
||||||
url: "{{ es_api_uri }}/{{ es_security_api }}/user/{{item}}"
|
url: "{{ es_api_uri }}/{{ es_security_api }}/user/{{ item | urlencode }}"
|
||||||
method: POST
|
method: POST
|
||||||
body_format: json
|
body_format: json
|
||||||
body: "{{ native_users[item] | to_json }}"
|
body: "{{ native_users[item] | to_json }}"
|
||||||
|
|
@ -171,7 +171,7 @@
|
||||||
#Delete all non required roles NOT inc. reserved
|
#Delete all non required roles NOT inc. reserved
|
||||||
- name: Delete Native Roles
|
- name: Delete Native Roles
|
||||||
uri:
|
uri:
|
||||||
url: "{{ es_api_uri }}/{{ es_security_api }}/role/{{item}}"
|
url: "{{ es_api_uri }}/{{ es_security_api }}/role/{{ item | urlencode }}"
|
||||||
method: DELETE
|
method: DELETE
|
||||||
status_code: 200
|
status_code: 200
|
||||||
user: "{{es_api_basic_auth_username}}"
|
user: "{{es_api_basic_auth_username}}"
|
||||||
|
|
@ -188,7 +188,7 @@
|
||||||
#Update other roles - NOT inc. reserved roles
|
#Update other roles - NOT inc. reserved roles
|
||||||
- name: Update Native Roles
|
- name: Update Native Roles
|
||||||
uri:
|
uri:
|
||||||
url: "{{ es_api_uri }}/{{ es_security_api }}/role/{{item}}"
|
url: "{{ es_api_uri }}/{{ es_security_api }}/role/{{ item | urlencode }}"
|
||||||
method: POST
|
method: POST
|
||||||
body_format: json
|
body_format: json
|
||||||
body: "{{ es_roles.native[item] | to_json}}"
|
body: "{{ es_roles.native[item] | to_json}}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue