13
tasks/api/session-end.yaml
Normal file
13
tasks/api/session-end.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- name: End API Session
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: "http://{{ glpi.host }}/apirest.php/killSession"
|
||||||
|
method: GET
|
||||||
|
return_content: true
|
||||||
|
body: ''
|
||||||
|
status_code: 200
|
||||||
|
headers:
|
||||||
|
App-Token: "{{ glpi.app_token }}"
|
||||||
|
Session-Token: "{{ glpi_session_get.json.session.valid_id }}"
|
||||||
|
body_format: json
|
||||||
|
no_log: true
|
Reference in New Issue
Block a user