diff --git a/tasks/api/session-end.yaml b/tasks/api/session-end.yaml new file mode 100644 index 0000000..3e771db --- /dev/null +++ b/tasks/api/session-end.yaml @@ -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