IBM / ansible-for-i

the tool is to provide several customized modules for Ansible to manage IBM i systems.
GNU General Public License v3.0
56 stars 55 forks source link

ibmi_cl_command return value job_name empty #190

Closed ShibuyaHao closed 1 month ago

ShibuyaHao commented 8 months ago

Hi, I get empty return value on "job_name": "" when I run my task below. Anyone know why?

tasks:

Output: {"changed": false, "cmd": "DSPMSG MSGQ(QSYSOPR)", "delta": "0:00:00.448407", "end": "2024-03-18 15:42:01.670194", "job_log": [], "job_name": "", "joblog": false, "rc": 0, "start": "2024-03-18 15:42:01.221787", "stderr": "", "stderr_lines": [], "stdout": "CPC9802: Printer output created

Best Regards Sihao

robgjertsen1 commented 1 month ago

For display commands or commands using OUTPUT parameter, the command is run with the system command versus iToolKit and doesn't provide job_log and job_name information. With joblog parameter toggled on, other types of commands will return the job information.

Please see https://ibm.github.io/ansible-for-i/modules/ibmi_cl_command.html