forked from frankmit11/icic-ocp-upi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_program.yml
46 lines (42 loc) · 1.63 KB
/
deploy_program.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
# (c) Copyright IBM Corporation 2021
# Apache License, Version 2.0 (see https://opensource.org/licenses/Apache-2.0)
---
- name: CICS Program Deploy
hosts: "all"
gather_facts: false
tasks:
############################################################################
# Copy load module to load library
############################################################################
- name: Copy PDS member from build to load library
environment: "{{ environment_vars }}"
ibm.ibm_zos_core.zos_copy:
src: "{{ build_ds }}({{ program }})"
dest: "{{ load_lib }}({{ program }})"
remote_src: true
############################################################################
# Install cmci_action module dependencies
############################################################################
- name: Make sure CMCI module dependencies are installed
delegate_to: localhost
ansible.builtin.pip:
name:
- requests
- xmltodict
- typing;python_version<"3.5"
############################################################################
# Install module dependencies
############################################################################
- name: NEWCOPY PROGRAM in CICS
delegate_to: localhost
ibm.ibm_zos_cics.cmci_action:
context: "{{ context }}"
scope: "{{ scope }}"
cmci_host: "{{ cmci_host }}"
cmci_port: "{{ cmci_port | int }}"
scheme: "{{ scheme }}"
action_name: NEWCOPY
type: CICSProgram
resources:
filter:
program: "{{ program }}"