-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-mpp-1.yml
30 lines (26 loc) · 974 Bytes
/
create-mpp-1.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
- name: Create MPP region
hosts: zsystem
gather_facts: false
environment: '{{ system_environment }}'
tasks:
- name: Create temporary directory to store provisioning files
tempfile:
state: directory
register: mpp_tmp_dir
- block:
- include_role:
name: install-bzip2
# * Include different variable files depending on environment/inventory used and which MPP being provisioned
# ? Is there a better location to handle this import
# TODO: put each mpp type in separate roles
- name: Load MPP1 specific variables
include_vars: "{{ playbook_dir }}/{{ vars_folder_name }}/ims-mpp-1.yml"
- include_role:
name: provision-mpp
always:
- name: Delete the temporary provision files directory
file:
path: "{{ mpp_tmp_dir.path }}"
state: absent
vars:
uss_file_path: '{{ mpp_tmp_dir.path }}'