Wolfgang Kulhanek
2019-03-29 4e22894c7018cdc01bab55daed284f3a233afc58
commit | author | age
05c497 1 ---
WK 2 # Implement your Workload removal tasks here
3
4e2289 4 - name: Remove OpenShift Project Request Template
05c497 5   k8s:
WK 6     state: absent
4e2289 7     definition: "{{ lookup('template', item ) | from_yaml }}"
05c497 8   loop:
4e2289 9   - ./templates/project_request_template.j2
WK 10   - ./templates/project_request_config.j2
11
12 - name: Remove label from openshift-ingress project
13   when:
14   - _install_network_policies
15   command: oc label namespace openshift-ingress netpol-
16   ignore_errors: True
05c497 17
WK 18 # Leave this as the last task in the playbook.
19 - name: remove_workload tasks complete
20   debug:
21     msg: "Remove Workload tasks completed successfully."
22   when: not silent|bool