|
8 | 8 | - name: OKD Installer | Destroy | Timer start
|
9 | 9 | ansible.builtin.set_fact:
|
10 | 10 | okdi_del_timer_start: "{{ ansible_date_time.date }} {{ ansible_date_time.time }}"
|
| 11 | + tags: all |
11 | 12 |
|
12 | 13 | # - ansible.builtin.import_playbook: var_check_required.yaml
|
13 | 14 |
|
|
31 | 32 | - name: okd-installer | Destroy | Network | Loading Topology Names
|
32 | 33 | ansible.builtin.include_vars:
|
33 | 34 | file: "{{ profile_path }}/network.yaml"
|
| 35 | + tags: all |
34 | 36 |
|
35 | 37 | # Load Balancers
|
36 | 38 | - name: okd-installer | Destroy | LB | Init list
|
37 | 39 | ansible.builtin.set_fact:
|
38 | 40 | load_balancers_all: []
|
| 41 | + tags: all |
39 | 42 |
|
40 | 43 | - name: okd-installer | Destroy | Load Resource Names
|
41 | 44 | ansible.builtin.include_vars:
|
42 | 45 | file: "{{ profile_path }}/destroy_resources.yaml"
|
| 46 | + tags: all |
43 | 47 |
|
44 |
| - - name: okd-installer | Destroy | LB | Load Router Names |
| 48 | + - name: okd-installer | Destroy | LB | Load LB Names |
45 | 49 | ansible.builtin.include_vars:
|
46 | 50 | file: "{{ profile_path }}/loadbalancer-router-default.yaml"
|
| 51 | + tags: all |
47 | 52 |
|
48 |
| - - name: okd-installer | Destroy | LB | Merge list |
| 53 | + - name: okd-installer | Destroy | LB | Merge list w/ router |
49 | 54 | ansible.builtin.set_fact:
|
50 |
| - load_balancers_all: "{{ load_balancers_all + cloud_loadbalancers }}" |
| 55 | + load_balancers_all: "{{ (load_balancers_all | d([])) + (cloud_loadbalancers | d([])) }}" |
| 56 | + tags: all |
51 | 57 |
|
52 | 58 | - name: okd-installer | Destroy | LB | Load API Names
|
53 | 59 | ansible.builtin.include_vars:
|
54 | 60 | file: "{{ profile_path }}/loadbalancer.yaml"
|
| 61 | + tags: all |
55 | 62 |
|
56 | 63 | - name: okd-installer | Destroy | LB | Merge list
|
57 | 64 | ansible.builtin.set_fact:
|
58 |
| - load_balancers_all: "{{ load_balancers_all + cloud_loadbalancers }}" |
| 65 | + load_balancers_all: "{{ load_balancers_all + (cloud_loadbalancers | d([])) }}" |
| 66 | + tags: all |
59 | 67 |
|
60 | 68 | - name: okd-installer | Destroy | LB | Consolidate
|
61 | 69 | ansible.builtin.set_fact:
|
62 | 70 | cloud_loadbalancers: "{{ load_balancers_all }}"
|
| 71 | + tags: all |
63 | 72 |
|
64 | 73 | - name: okd-installer | Destroy | LB | Show number of resources
|
65 | 74 | ansible.builtin.debug:
|
66 | 75 | msg: "Found {{ cloud_loadbalancers | length }} Load Balancers on the Configuration"
|
| 76 | + tags: all |
67 | 77 |
|
68 | 78 | roles:
|
69 | 79 | - role: destroy
|
70 |
| - |
| 80 | + tags: all |
71 | 81 |
|
72 | 82 | - name: okd-installer | Destroy | Finish
|
73 | 83 | hosts: '{{ target|default("localhost") }}'
|
|
77 | 87 | - name: okd-installer | Destroy | Finish | Timer end
|
78 | 88 | ansible.builtin.set_fact:
|
79 | 89 | okdi_del_timer_end: "{{ ansible_date_time.date }} {{ ansible_date_time.time }}"
|
| 90 | + tags: all |
80 | 91 |
|
81 | 92 | - name: okd-installer | Destroy | Finish | Show timers
|
82 | 93 | ansible.builtin.debug:
|
83 | 94 | msg:
|
84 | 95 | - "start=[{{ okdi_del_timer_start | d('') }}] end=[{{ okdi_del_timer_end }}]"
|
85 | 96 | - "total=[{{ ((okdi_del_timer_end | to_datetime) - (okdi_del_timer_start | to_datetime)) }}]"
|
| 97 | + tags: all |
0 commit comments