zos_operator – Execute operator command¶
Parameters¶
- cmd
The command to execute.
required: Truetype: str- debug
Return debugging information.
required: Falsetype: bool- verbose
Return verbose information.
required: Falsetype: bool
Examples¶
- name: Execute an operator command to show active jobs
zos_operator:
cmd: 'd u,all'
- name: Execute an operator command to show active jobs with verbose information
zos_operator:
cmd: 'd u,all'
verbose: true
- name: Execute an operator command to show active jobs with verbose and debug information
zos_operator:
cmd: 'd u,all'
verbose: true
debug: true
- name: Execute an operator command to purge all job logs (requires escaping)
zos_operator:
cmd: "\\$PJ(*)"
Return Values¶
- rc
Return code of the operator commandreturned: on successtype: int- content
The response resulting from the execution of the operator commandreturned: on successtype: listsample:["MV2C 2020039 04:29:57.58 ISF031I CONSOLE XIAOPIN ACTIVATED ", "MV2C 2020039 04:29:57.58 -D U,ALL ", "MV2C 2020039 04:29:57.59 IEE457I 04.29.57 UNIT STATUS 948 ", " UNIT TYPE STATUS VOLSER VOLSTATE SS ", " 0100 3277 OFFLINE 0 ", " 0101 3277 OFFLINE 0 "]- changed
Indicates if any changes were made during module operation. Given operator commands may introduce changes that are unknown to the module. True is always returned unless either a module or command failure has occurred.returned: alwaystype: bool