-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathapp-redeploy.yml
66 lines (53 loc) · 1.58 KB
/
app-redeploy.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
---
- name: IMS Cobol Application Re-deployment
hosts: zsystem
collections:
- ibm.ibm_zos_core
- ibm.ibm_zos_ims
gather_facts: false
vars_files:
- "{{ vars_folder_name }}/ims_cobol.yml"
environment: "{{ system_environment }}"
tasks:
# Rebuild and update ACBLIB (run all gens) if requested.
- name: Rebuild and update ACBLIB.
block:
- include_role:
name: ims_cobol_run_gens
vars:
dbd_gen: true
psb_gen: true
acb_gen: true
- include_role:
name: ims_cobol_check_acblib
- include_role:
name: ims_cobol_copy_acblib_to_inactive_acb
when: UPDATE_ACB
# Compile and link cobol apps
- include_role:
name: ims_cobol_compile_link_cobol
# Create dynamic allocation
- include_role:
name: ims_cobol_create_dynamic_alloc
# Reload the data if requested
- name: Reload the data.
block:
- include_role:
name: ims_cobol_stop_ims_databases
- include_role:
name: ims_cobol_load_accounts
- include_role:
name: ims_cobol_load_customer_accounts
- include_role:
name: ims_cobol_load_customer_data
- include_role:
name: ims_cobol_load_history
- include_role:
name: ims_cobol_load_tsta
# Restart IMS databases
- include_role:
name: ims_cobol_define_ims_databases
when: UPDATE_DATA
# Refresh IMS application resources
- include_role:
name: ims_cobol_refresh_ims_resources