Skip to content

Instantly share code, notes, and snippets.

@matzew
Created November 30, 2017 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/aed49108f63bdf5b4933f94c0feeba85 to your computer and use it in GitHub Desktop.
Save matzew/aed49108f63bdf5b4933f94c0feeba85 to your computer and use it in GitHub Desktop.
- name: "Generate keycloak auth token"
uri:
url: "http://{{ keycloak_route.stdout }}/auth/realms/master/protocol/openid-connect/token"
method: POST
body: "client_id=admin-cli&username={{ ADMIN_NAME }}&password={{ ADMIN_PASSWORD }}&grant_type=password"
validate_certs: no
register: keycloak_auth_response
until: keycloak_auth_response.status == 200
retries: 600
delay: 2
- debug: var=keycloak_auth_response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment