commit | author | age
|
40ebe8
|
1 |
--- |
CM |
2 |
# Implement your Workload deployment tasks here |
|
3 |
|
|
4 |
- name: Setting up workload for user |
|
5 |
debug: |
|
6 |
msg: "Setting up workload for user ocp_username = {{ ocp_username }}" |
|
7 |
|
|
8 |
- name: Install heml tool |
|
9 |
include_tasks: |
|
10 |
file: ./helm.yml |
|
11 |
|
|
12 |
- name: Deploy Tekton pipelines |
|
13 |
include_tasks: |
|
14 |
file: ./tekton.yml |
|
15 |
|
|
16 |
- name: Install KubeDB Operator |
|
17 |
include_tasks: |
|
18 |
file: ./kubedb.yml |
|
19 |
|
|
20 |
- name: Deploy Component Operator |
|
21 |
include_tasks: |
|
22 |
file: ./operator.yml |
|
23 |
|
771294
|
24 |
- name: Grant cluster sudoer role to users |
CM |
25 |
shell: | |
|
26 |
oc --kubeconfig={{ kube_config }} adm policy add-cluster-role-to-user sudoer {{ item }} |
|
27 |
with_items: |
|
28 |
- user1 |
|
29 |
|
40ebe8
|
30 |
# Leave this as the last task in the playbook. |
CM |
31 |
- name: workload tasks complete |
|
32 |
debug: |
|
33 |
msg: "Workload Tasks completed successfully." |
|
34 |
when: not silent|bool |