-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathdeprovision-ims-dbdc.yml
105 lines (93 loc) · 2.78 KB
/
deprovision-ims-dbdc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
- name: Deprovision IMS DB/DC
collections:
- ibm.ibm_zos_core
- ibm.ibm_zos_ims
hosts: zvm
gather_facts: false
# * Include different variable files depending on environment/inventory used
vars_files:
- "{{ vars_folder_name }}/ims-dbdc.yml"
environment: '{{ system_environment }}'
# TODO: add removal of reserved ports
tasks:
- block:
- include_role:
name: install-bzip2
- name: Stop all IMS resources
ims_command:
batch:
- command: STOP DC
plex: '{{ DFS_IMSPlex }}'
route: '{{ DFS_IMS_SSID }}'
- command: STOP PGM ALL
plex: '{{ DFS_IMSPlex }}'
route: '{{ DFS_IMS_SSID }}'
- command: STOP TRAN ALL
plex: '{{ DFS_IMSPlex }}'
route: '{{ DFS_IMS_SSID }}'
- command: STOP DB ALL
plex: '{{ DFS_IMSPlex }}'
route: '{{ DFS_IMS_SSID }}'
ignore_errors: true
- name: Immediate IMS Shutdown
ims_command:
command: CHE FREEZE
plex: '{{ DFS_IMSPlex }}'
route: '{{ DFS_IMS_SSID }}'
ignore_errors: true
# Stop ICON
- block:
- include_role:
name: ims_common
vars:
icon: stop
ctl: ""
wait_for_job: false
cold_start: false
# Stop OM by calling its role
- block:
- include_role:
name: ims_operations_manager
vars:
om: stop
# Stop RM by calling its role
- block:
- include_role:
name: ims_resource_manager
vars:
rm: stop
# Stop SCI by calling its role
- block:
- include_role:
name: ims_structured_call_interface
vars:
sci: stop
- block:
- include_role:
name: ims_dataset
vars:
work_dataset: ""
sysdef_datasets: delete
runtime_datasets: delete
system_datasets: ""
- block:
- include_role:
name: ims_catalog
vars:
catalog: delete
- block:
- include_role:
name: ims_catalog_image_copy
vars:
image: delete
dbrc_enabled: "{{ CATALOG_DBRC_ENABLED }}"
- block:
- include_role:
name: ims_iefjobs
vars:
iefjobs: delete
- block:
- include_role:
name: ims_proclib
vars:
delete: true