middleware_automation.keycloak/roles/keycloak_realm/tasks/manage_token_lifespan.yml
2024-12-03 22:40:25 +05:30

14 lines
388 B
YAML

---
- name: "Update Access token lifespan"
ansible.builtin.uri:
url: "{{ keycloak_url }}{{ keycloak_context }}/admin/realms/{{ keycloak_realm }}"
method: PUT
body:
accessTokenLifespan: 300
validate_certs: false
body_format: json
status_code:
- 200
- 204
headers:
Authorization: "Bearer {{ keycloak_auth_response.json.access_token }}"