The module has a feature which allows for args to be submitted in-line which currently does not read/parse more than the FIRST arg.
- name: Run REXX script to get a job's information.
ibm.ibm_zos_core.zos_script:
cmd: "{{ playbook_dir }}/files/JOB_INFO JOBID=JOB00114 OWNER=OMVSADM JOBNAME=HELLO"
remote_src: false
However, the 2nd and 3rd args (OWNER and JOBNAME) are not successfully parsed, see partial extracts of the verbosity output:
Notice the discrepancy between cmd outside the invocation dict and cmd and remote_cmd inside the invocation dict, the two value inside the invocation dict are missing the OWNER and JOBNAME args which were passed in from the playbook.
IBM z/OS Ansible core Version
v1.10.0
IBM Z Open Automation Utilities
v1.3.2
IBM Enterprise Python
v3.11.x (default)
ansible-version
v2.16.x (default)
z/OS version
v2.5 (default)
Ansible module
zos_script
Playbook verbosity output.
The above was recreated from running the sample playbook on the samples repo
Is there an existing issue for this?
Bug description
The module has a feature which allows for args to be submitted in-line which currently does not read/parse more than the FIRST arg.
However, the 2nd and 3rd args (OWNER and JOBNAME) are not successfully parsed, see partial extracts of the verbosity output:
Notice the discrepancy between
cmd
outside theinvocation
dict andcmd
andremote_cmd
inside theinvocation
dict, the two value inside theinvocation
dict are missing the OWNER and JOBNAME args which were passed in from the playbook.IBM z/OS Ansible core Version
v1.10.0
IBM Z Open Automation Utilities
v1.3.2
IBM Enterprise Python
v3.11.x (default)
ansible-version
v2.16.x (default)
z/OS version
v2.5 (default)
Ansible module
zos_script
Playbook verbosity output.
The above was recreated from running the sample playbook on the samples repo
First I submitted a job,
submit hello.jcl
to submit the jcl, job number gets printed to command line,jls | grep <job_number>
to get the remaining job details (owner is OMVSADM, jobname is HELLO)Then I ran the first task in the sample playbook and substitute in the values for JOBID, OWNER, and JOBNAME
Expected output from the recreate is:
Ansible configuration.
No response
Contents of the inventory
No response
Contents of
group_vars
orhost_vars
No response