commit | author | age
|
2282af
|
1 |
--- |
GH |
2 |
- name: Create operator |
|
3 |
k8s: |
|
4 |
state: present |
|
5 |
namespace: "{{ _namespace }}" |
|
6 |
definition: "{{ lookup('file', role_path ~ '/files/businessautomation/operator.yml' ) | from_yaml }}" |
|
7 |
|
ddd690
|
8 |
- name: Wait until csv/{{ _businessautomation_csv_version }} is Succeeded |
2282af
|
9 |
command: > |
GH |
10 |
oc get csv/{{ _businessautomation_csv_version }} -o jsonpath='{.status.phase}' -n "{{ _namespace }}" |
|
11 |
register: bizscsv |
|
12 |
retries: "{{ _retry }}" |
|
13 |
delay: "{{ _delay }}" |
|
14 |
until: bizscsv.stdout == "Succeeded" |
|
15 |
|
|
16 |
- name: Create Kie App |
|
17 |
k8s: |
|
18 |
state: present |
|
19 |
namespace: "{{ _namespace }}" |
|
20 |
definition: "{{ lookup('template', role_path ~ '/files/businessautomation/kie.yml' ) | from_yaml }}" |
|
21 |
|
|
22 |
- name: Wait until KieApp has Deployed condition |
|
23 |
command: > |
|
24 |
oc get kieapp/rhpam-trial -o jsonpath='{.status.conditions[?(@.type=="Deployed")].status}' -n "{{ _namespace }}" |
|
25 |
register: kieapp |
|
26 |
retries: "{{ _retry }}" |
|
27 |
delay: "{{ _delay }}" |
|
28 |
until: kieapp.stdout == "True" |
|
29 |
|
|
30 |
- name: todo |
|
31 |
debug: |
|
32 |
msg: "TODO: Is the deployed KieApp usable for the workshop? or do we need something else?" |