|
| 1 | +--- |
| 2 | + |
| 3 | +# Copyright 2023 Cloudera, Inc. All Rights Reserved. |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +- name: Tear down CDP Public Cloud |
| 18 | + hosts: "{{ target | default('localhost') }}" |
| 19 | + environment: "{{ globals.env_vars }}" |
| 20 | + gather_facts: yes |
| 21 | + tasks: |
| 22 | + |
| 23 | +# TODO Need to propagate 'ml', 'dw', etc. to selected tasks within the roles, |
| 24 | +# including those that would otherwise be 'always' - in this context; 'always' |
| 25 | +# should be reserved for the initialization of cloudera-deploy |
| 26 | + |
| 27 | + - name: Validate Platform configuration |
| 28 | + ansible.builtin.import_role: |
| 29 | + name: cloudera.exe.platform |
| 30 | + tasks_from: validate |
| 31 | + tags: |
| 32 | + - validate |
| 33 | + - initialize |
| 34 | + |
| 35 | + - name: Validate Data Services configuration |
| 36 | + ansible.builtin.import_role: |
| 37 | + name: cloudera.exe.runtime |
| 38 | + tasks_from: validate |
| 39 | + tags: |
| 40 | + - validate |
| 41 | + - initialize |
| 42 | + |
| 43 | + - name: Initialize Data Services teardown |
| 44 | + ansible.builtin.import_role: |
| 45 | + name: cloudera.exe.runtime |
| 46 | + tasks_from: initialize_teardown |
| 47 | + tags: |
| 48 | + - initialize |
| 49 | + - run |
| 50 | + - plat |
| 51 | + |
| 52 | + - name: Tear down Data Services |
| 53 | + ansible.builtin.import_role: |
| 54 | + name: cloudera.exe.runtime |
| 55 | + tasks_from: teardown |
| 56 | + tags: |
| 57 | + - run |
| 58 | + - plat |
| 59 | + |
| 60 | + - name: Initialize Platform teardown |
| 61 | + ansible.builtin.import_role: |
| 62 | + name: cloudera.exe.platform |
| 63 | + tasks_from: initialize_teardown |
| 64 | + tags: |
| 65 | + - initialize |
| 66 | + - plat |
| 67 | + |
| 68 | + - name: Tear down Platform |
| 69 | + ansible.builtin.import_role: |
| 70 | + name: cloudera.exe.platform |
| 71 | + tasks_from: teardown |
| 72 | + tags: |
| 73 | + - plat |
0 commit comments