Jeff Bride
2019-09-04 67877b8dfaa513c939a22d915cd76b9cf5156079
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
---
# Implement your Workload deployment tasks here
 
- name: Setting up workload for user
  debug:
    msg: "Setting up workload for user ocp_username = {{ ocp_username }}"
 
- name: Install heml tool
  include_tasks:
    file: ./helm.yml
 
- name: Deploy Tekton pipelines
  include_tasks:
    file: ./tekton.yml
 
- name: Install KubeDB Operator
  include_tasks:
    file: ./kubedb.yml
 
- name: Deploy Component Operator
  include_tasks:
    file: ./operator.yml
 
- name: Grant cluster sudoer role to users
  shell: |
    oc --kubeconfig={{ kube_config }} adm policy add-cluster-role-to-user sudoer {{ item }}
  with_items:
    - user1
 
# Leave this as the last task in the playbook.
- name: workload tasks complete
  debug:
    msg: "Workload Tasks completed successfully."
  when: not silent|bool