mirror of
https://github.com/ansible-middleware/keycloak.git
synced 2025-07-29 08:01:33 -07:00
add rhsso_cli tasks, change shape of rhsso_rhn_ids
This commit is contained in:
parent
f5cd6d8061
commit
707d8cfb11
5 changed files with 35 additions and 5 deletions
20
roles/keycloak/tasks/rhsso_cli.yml
Normal file
20
roles/keycloak/tasks/rhsso_cli.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- name: Ensure required params for CLI have been provided
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- query is defined
|
||||
fail_msg: "Missing required parameters to execute CLI."
|
||||
quiet: true
|
||||
|
||||
- name: Verify server management interface is functional
|
||||
ansible.builtin.uri:
|
||||
url: "{{ keycloak_management_url }}"
|
||||
register: result
|
||||
until: result.status == 200
|
||||
retries: 5
|
||||
delay: 5
|
||||
|
||||
- name: "Execute CLI query: {{ query }}"
|
||||
ansible.builtin.command: >
|
||||
{{ path_to_cli }} -c --output-json --command='{{ query }}' --controller={{ keycloak_host }}:{{ keycloak_management_http_port }}
|
||||
changed_when: false
|
Loading…
Add table
Add a link
Reference in a new issue