| | |
| | | --- |
| | | # Implement your Workload removal tasks here |
| | | |
| | | - name: Remove OpenShift Objects for Service Broker |
| | | - name: Remove OpenShift Project Request Template |
| | | k8s: |
| | | state: absent |
| | | definition: "{{ lookup('file', item ) | from_yaml }}" |
| | | definition: "{{ lookup('template', item ) | from_yaml }}" |
| | | loop: |
| | | - ./files/service_catalog_api_server.yaml |
| | | - ./files/service_catalog_controller_manager.yaml |
| | | - ./templates/project_request_template.j2 |
| | | - ./templates/project_request_config.j2 |
| | | |
| | | - name: Remove label from openshift-ingress project |
| | | when: |
| | | - _install_network_policies |
| | | command: oc label namespace openshift-ingress netpol- |
| | | ignore_errors: True |
| | | |
| | | # Leave this as the last task in the playbook. |
| | | - name: remove_workload tasks complete |