Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions roles/ocp4_workload_authentication/tasks/setup_keycloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
when: _ocp4_workload_authentication_auth_method == 'rosa'
block:
- name: Delete existing ROSA IdP if present
delegate_to: "{{ groups['bastions'][0] }}"
delegate_to: "{{ (groups['bastions'] | default(['localhost']))[0] }}"
ansible.builtin.command: >-
rosa delete idp {{ ocp4_workload_authentication_keycloak_default_realm }}
--cluster {{ ocp4_workload_authentication_rosa_cluster_name | default('rosa-' ~ guid) }}
Expand All @@ -114,7 +114,7 @@
changed_when: false

- name: Create ROSA OpenID identity provider
delegate_to: "{{ groups['bastions'][0] }}"
delegate_to: "{{ (groups['bastions'] | default(['localhost']))[0] }}"
ansible.builtin.command: >-
rosa create idp
--cluster {{ ocp4_workload_authentication_rosa_cluster_name | default('rosa-' ~ guid) }}
Expand Down
Loading