-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathmain.yml
38 lines (32 loc) · 1.22 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- hosts: identity-hosts
name: Verify Identity Provider
tasks:
- name: "Fail if ocp_subdomain or subdomain_base_suffix not provided"
fail:
msg: "Variable ocp_subdomain ({{ ocp_subdomain | default('')}}) or subdomain_base_suffix ({{ subdomain_base_suffix | default('') }}) is not defined or empty"
when:
- (ocp_subdomain is undefined or ocp_subdomain|trim == "") or
(subdomain_base_suffix is undefined or subdomain_base_suffix|trim == "")
- set_fact:
ipa_host: "ipa.apps.{{ ocp_subdomain }}.{{ subdomain_base_suffix }}"
- name: Wait for IdM to be responsive
uri:
url: "https://{{ ipa_host }}/ipa/ui/"
validate_certs: "{{ ipa_validate_certs }}"
register: rc
until: rc.status|trim|int == 200
retries: 90
delay: 60
- name: Remove participants from IdM
import_playbook: "process_remove.yml"
when:
- lodestar_identities_remove.users is defined
- lodestar_identities_remove.users != []
- name: Add participants to IdM
import_playbook: "process_add.yml"
when:
- lodestar_identities.users is defined
- lodestar_identities.users != []
- name: Update Anarchy with status
import_playbook: completion_callback.yml