Skip to content

Commit 82648b8

Browse files
committed
updates to initial set of playbooks
Signed-off-by: Ketan Kelkar <ktnklkr@gmail.com>
1 parent 370e829 commit 82648b8

5 files changed

Lines changed: 23 additions & 22 deletions

File tree

zos_concepts/data_sets/copy_edit_submit/copy_edit_submit.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
# © Copyright IBM Corporation 2020, 2021
2+
# © Copyright IBM Corporation 2020, 2024
33
###############################################################################
44

55
###############################################################################
@@ -93,8 +93,7 @@
9393
- name: "Submit the JCL {{ tmp_data_set }}(PSA)"
9494
zos_job_submit:
9595
src: "{{ tmp_data_set }}(PSA)"
96-
location: DATA_SET
97-
wait: true
96+
location: data_set
9897
register: result_submit_psa
9998

10099
- name: "Response for submitting JCL {{ tmp_data_set }}(PSA)"
@@ -104,8 +103,7 @@
104103
- name: "Submit the JCL {{ tmp_data_set }}(UPTIME)"
105104
zos_job_submit:
106105
src: "{{ tmp_data_set }}(UPTIME)"
107-
location: DATA_SET
108-
wait: true
106+
location: data_set
109107
register: result_submit_uptime
110108

111109
- name: "Response for submitting JCL {{ tmp_data_set }}(UPTIME)"

zos_concepts/data_sets/data_set_basics/data_set_basics.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
# © Copyright IBM Corporation 2020, 2021
2+
# © Copyright IBM Corporation 2020, 2024
33
###############################################################################
44
# This sample playbook demonstrates basic data set operations using modules
55
# included in the Red Hat Ansible Certified Content for IBM Z core collection.
@@ -85,7 +85,8 @@
8585
replace: true
8686
format: fb
8787
record_length: 100
88-
size: 5M
88+
space_primary: 5
89+
space_type: m
8990
register: result
9091

9192
- name: Response for data set creation
@@ -106,7 +107,6 @@
106107
zos_copy:
107108
src: "{{ playbook_dir }}/files/HELLO.jcl"
108109
dest: "{{ tgt_tmp_dir }}/HELLO"
109-
# remote_src: yes
110110
register: result
111111

112112
- name: Response for populating USS file {{ tgt_tmp_dir }}/HELLO
@@ -129,7 +129,8 @@
129129
zos_data_set:
130130
name: "{{ pds_name }}"
131131
type: pds
132-
size: 5M
132+
space_primary: 5
133+
space_type: m
133134
format: fba
134135
record_length: 100
135136
register: result
@@ -141,7 +142,7 @@
141142
- name: Remove the target PDS member if it exists, for idempotency.
142143
zos_data_set:
143144
name: "{{ pds_name }}(HELLO)"
144-
type: MEMBER
145+
type: member
145146
state: absent
146147
register: result
147148

zos_concepts/encoding/convert_encoding/convert_encoding.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
# © Copyright IBM Corporation 2020, 2021
2+
# © Copyright IBM Corporation 2020, 2024
33
###############################################################################
44

55
###############################################################################
@@ -96,8 +96,9 @@
9696
zos_encode:
9797
src: "{{ tgt_tmp_dir }}/date.sh"
9898
dest: "{{ tgt_tmp_dir }}/date.sh"
99-
from_encoding: ISO8859-1
100-
to_encoding: "{{ target_charset }}"
99+
encoding:
100+
from: ISO8859-1
101+
to: "{{ target_charset }}"
101102
backup: false
102103
register: result
103104

@@ -196,8 +197,9 @@
196197
zos_encode:
197198
src: "{{ tgt_tmp_dir }}/encode/"
198199
dest: "{{ tgt_tmp_dir }}/encode/"
199-
from_encoding: ISO8859-1
200-
to_encoding: "{{ target_charset }}"
200+
encoding:
201+
from: ISO8859-1
202+
to: "{{ target_charset }}"
201203
register: result
202204

203205
- name: Response for encode files in {{ tgt_tmp_dir }}/encode/` from

zos_concepts/tso_commands/scripts/run_rexx_and_clist.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
# © Copyright IBM Corporation 2023
2+
# © Copyright IBM Corporation 2023, 2024
33
###############################################################################
44

55
###############################################################################
@@ -40,7 +40,7 @@
4040
block:
4141
- name: Copy file to a new data set.
4242
ibm.ibm_zos_core.zos_copy:
43-
src: ./files/DSINFO
43+
src: "{{ playbook_dir }}/files/DSINFO"
4444
dest: "{{ script_data_set }}"
4545
remote_src: false
4646

@@ -58,7 +58,7 @@
5858
block:
5959
- name: Copy file to a new data set.
6060
ibm.ibm_zos_core.zos_copy:
61-
src: ./files/CLIST
61+
src: "{{ playbook_dir }}/files/CLIST"
6262
dest: "{{ clist_data_set }}"
6363
remote_src: false
6464

zos_concepts/zos_script/zos_script.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###############################################################################
2-
# © Copyright IBM Corporation 2023
2+
# © Copyright IBM Corporation 2023, 2024
33
###############################################################################
44

55
###############################################################################
@@ -45,7 +45,7 @@
4545
# node. Make sure to replace the values of the arguments.
4646
- name: Run REXX script to get a job's information.
4747
ibm.ibm_zos_core.zos_script:
48-
cmd: ./files/JOB_INFO JOBID=ID OWNER=OWNER JOBNAME=NAME
48+
cmd: "{{ playbook_dir }}/files/JOB_INFO JOBID=ID OWNER=OWNER JOBNAME=NAME"
4949
remote_src: false
5050
register: job_output
5151

@@ -57,7 +57,7 @@
5757
# control over the way a script is run.
5858
- name: Run Python script in a given directory.
5959
ibm.ibm_zos_core.zos_script:
60-
cmd: ./files/list_dir.py
60+
cmd: "{{ playbook_dir }}/files/list_dir.py"
6161
chdir: "{{ python_script_dir }}"
6262
executable: "{{ ansible_python_interpreter }}"
6363
remote_src: false
@@ -71,7 +71,7 @@
7171
# the variables defined above.
7272
- name: Run template of a REXX script.
7373
ibm.ibm_zos_core.zos_script:
74-
cmd: ./files/CATALOG
74+
cmd: "{{ playbook_dir }}/files/CATALOG"
7575
remote_src: false
7676
use_template: true
7777
template_parameters:

0 commit comments

Comments
 (0)