Wolfgang Kulhanek
2019-07-26 1598bb224fbd327b90a591b597f3c7b266fb5dfc
commit | author | age
a637ad 1 ---
WK 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: Debug stuff
9   debug:
10     msg: "Pull secret: {{ _quay_dockerconfigjson }}"
11
12 - name: Create OpenShift Objects for Red Hat Quay Registry
13   k8s:
14     state: present
15     merge_type:
16     - strategic-merge
17     - merge
18     definition: "{{ lookup('template', item ) | from_yaml }}"
19   loop:
20   - ./templates/project.j2
21   - ./templates/crd.j2
22   - ./templates/service_account.j2
23   - ./templates/cluster_role.j2
24   - ./templates/cluster_role_binding.j2
25   - ./templates/role.j2
26   - ./templates/role_binding.j2
27   - ./templates/operator.j2
28   - ./templates/pull_secret.j2
1598bb 29   - ./templates/quay_superuser_secret.j2
WK 30   - ./templates/quay_config_secret.j2
a637ad 31   - ./templates/quay.j2
WK 32
33 # Leave this as the last task in the playbook.
34 - name: workload tasks complete
35   debug:
36     msg: "Workload Tasks completed successfully."
37   when: not silent|bool