Gareth Healy
2020-02-18 22da5edc5eb58690c8a9c55bdd48c8dae7077a0a
commit | author | age
2282af 1 ---
GH 2 # Implement your Workload deployment tasks here
3 - name: Setting up workload for users
4   debug:
5     msg: "Setting up workload for {{ range(user_count_start|int, user_count_end|int)|list }} users"
6
7 - name: Check OLM sources are running
8   command: >
9     oc rollout status Deployment/{{ item }} --watch=true -n openshift-marketplace
10   with_items:
11     - redhat-operators
12     - community-operators
13
14 - name: Get Ingress domain
15   command: >
16     oc get ingresscontroller/default -n openshift-ingress-operator -o jsonpath='{.status.domain}' -n openshift-ingress-operator
17   register: ingressdomain
18
22da5e 19 - name: Get server via whoami
GH 20   command: >
21     oc whoami --show-server
22   register: ocwhoami
23
2282af 24 - name: Run tasks per cluster
16f23b 25   include_tasks: workload_cluster.yml
2282af 26
GH 27 - name: Run tasks per project
28   include_tasks: workload_project.yml
29   loop: "{{ range(user_count_start|int, user_count_end|int)|list }}"
30   loop_control:
31     loop_var: user_num
32
33 # Leave this as the last task in the playbook.
34 - name: workload tasks complete
35   debug:
36     msg: "Workload Tasks completed successfully."