-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision-ims-tmdb.yml
70 lines (53 loc) · 1.68 KB
/
provision-ims-tmdb.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
# - name: perform firewall auth if running against the native system inventory
# hosts: zsystem
# gather_facts: false
# vars_files:
# - "{{ vars_folder_name }}/ims-dbdc.yml"
# environment: '{{ system_environment }}'
# - name: firewall auth
# import_playbook: authenticate-with-firewall.yml
# when: "'native' in inventory_hostname"
- name: Provision and IMS with a single MPP region
hosts: zsystem
collections:
- ibm.ibm_zos_core
gather_facts: false
vars_files:
- "{{ vars_folder_name }}/ims-dbdc.yml"
environment: '{{ system_environment }}'
tasks:
- name: Create temporary directory to store provisioning files
tempfile:
state: directory
register: provision_tmp_dir
- block:
- include_role:
name: install-bzip2
# Start IMS provisioning
- include_role:
name: provision-ims-dbdc
tasks_from: create_ims
tags:
- create_ims
- include_role:
name: provision-ims-dbdc
tasks_from: prep_ims
tags:
- prep_ims
- include_role:
name: provision-ims-dbdc
tasks_from: start_ims
tags:
- start_ims
# Start IMS MPP provisioning
# - name: Load MPP2 specific variables
# include_vars: "{{ playbook_dir }}/{{ vars_folder_name }}/ims-mpp-2.yml"
# - include_role:
# name: provision-mpp
always:
- name: Delete the temporary provision files directory
file:
path: "{{ provision_tmp_dir.path }}"
state: absent
vars:
uss_file_path: '{{ provision_tmp_dir.path }}'