forked from kiera-bennett/cics-cobol-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
full_provision.yml
89 lines (75 loc) · 2.73 KB
/
full_provision.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
# (c) Copyright IBM Corp. 2024
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
---
- name: Provision CICS Data sets and start the region
hosts: all
gather_facts: false
environment: "{{ environment_vars }}"
module_defaults:
group/ibm.ibm_zos_cics.region:
state: initial
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: Create the auxiliary temporary storage data set (DFHTEMP)
ibm.ibm_zos_cics.aux_temp_storage:
- name: Create the auxiliary trace data set (DFHAUXT)
ibm.ibm_zos_cics.aux_trace:
- name: Create the second auxiliary trace data set (DFHBUXT)
ibm.ibm_zos_cics.aux_trace:
destination: B
- name: Create the transaction dump data set (DFHDMPA)
ibm.ibm_zos_cics.transaction_dump:
- name: Create the second transaction dump data set (DFHDMPB)
ibm.ibm_zos_cics.transaction_dump:
destination: B
- name: Create the CSD data set (DFHCSD)
ibm.ibm_zos_cics.csd:
- name: Update the CSD data set with the CSDUP script
ibm.ibm_zos_cics.csd:
state: changed
input_location: INLINE
input_content: |
ADD GROUP(DFHTERMC) LIST(DFHLIST1)
DEFINE PROGRAM(HELLO) GROUP(APPGRP)
DEFINE TRANSACTION(DREW) GROUP(APPGRP) PROGRAM(HELLO)
ADD GROUP(APPGRP) LIST(APPLIST)
- name: Create the transient data intrapartition data set (DFHINTRA)
ibm.ibm_zos_cics.td_intrapartition:
- name: Create the local request queue data set (DFHLRQ)
ibm.ibm_zos_cics.local_request_queue:
- name: Create the global catalog data set (DFHGCD)
ibm.ibm_zos_cics.global_catalog:
- name: Create the local catalog data set (DFHLCD)
ibm.ibm_zos_cics.local_catalog:
- name: Create CICS startup JCL data set (DFHSTART)
ibm.ibm_zos_cics.region_jcl:
applid: "{{ applid }}"
dfhrpl:
data_sets:
- "{{ ansible_user }}.COBOL.LOAD"
job_parameters:
region: 0M
sit_parameters:
start: INITIAL
sit: 6$
aicons: AUTO
cicssvc: 217
csdrecov: NONE
edsalim: 500M
grplist: (DFHLIST*,APPLIST)
gmtext: Region provisioned with Ansible
srbsvc: 218
tcpip: "NO"
usshome: /cics/cics740
sysidnt: ZPY1
register: result
- name: Submit region JCL
ansible.builtin.command:
cmd: jsub "{{ ansible_user }}.REGIONS.{{ applid }}.DFHSTART"
changed_when: true