-
Notifications
You must be signed in to change notification settings - Fork 1
/
deprovision.yml
75 lines (59 loc) · 2.25 KB
/
deprovision.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
# (c) Copyright IBM Corp. 2024
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
---
- name: Stop CICS and deprovision CICS Data sets
hosts: all
gather_facts: false
vars_files: "{{ playbook_dir }}/host_vars/variables.yml"
environment: "{{ environment_vars }}"
module_defaults:
group/ibm.ibm_zos_cics.region:
state: absent
cics_data_sets:
template: "CTS610.CICS740.<< lib_name >>"
sdfhlic: "CTS610.CICS740.LIC.SDFHLIC"
region_data_sets:
template: "{{ ansible_user }}.REGIONS.{{ applid }}.<< data_set_name >>"
le_data_sets:
template: "CEE.<< lib_name >>"
tasks:
- name: Stop CICS Region
ibm.ibm_zos_cics.stop_region:
job_name: "{{ applid }}"
register: result
- name: Log output of stop
ansible.builtin.debug:
msg: "{{ result }}"
- name: Delete the auxiliary temporary storage data set (DFHTEMP)
ibm.ibm_zos_cics.aux_temp_storage:
- name: Delete the auxiliary trace data set (DFHAUXT)
ibm.ibm_zos_cics.aux_trace:
- name: Delete the second auxiliary trace data set (DFHBUXT)
ibm.ibm_zos_cics.aux_trace:
destination: B
- name: Delete the transaction dump data set (DFHDMPA)
ibm.ibm_zos_cics.transaction_dump:
- name: Delete the second transaction dump data set (DFHDMPB)
ibm.ibm_zos_cics.transaction_dump:
destination: B
- name: Delete the CSD data set (DFHCSD)
ibm.ibm_zos_cics.csd:
- name: Delete the transient data intrapartition data set (DFHINTRA)
ibm.ibm_zos_cics.td_intrapartition:
- name: Delete the local request queue data set (DFHLRQ)
ibm.ibm_zos_cics.local_request_queue:
- name: Delete the global catalog data set (DFHGCD)
ibm.ibm_zos_cics.global_catalog:
- name: Delete the local catalog data set (DFHLCD)
ibm.ibm_zos_cics.local_catalog:
- name: Delete the CICS startup JCL data set (DFHSTART)
ibm.ibm_zos_cics.region_jcl:
applid: "{{ applid }}"
- name: Delete the COBOL source
ibm.ibm_zos_core.zos_data_set:
name: KIERAB.COBOL.SOURCE
state: absent
- name: Delete the load library
ibm.ibm_zos_core.zos_data_set:
name: KIERAB.COBOL.LOAD
state: absent