Hello, everyone,
I'm starting to play with Ansible on z/OS. I've made a very, very simple playbook (it just sets up a SSH tunnel to the mainframe and tries to download a dataset), and it fails with an illegible error message:
fatal: [tunnel]: FAILED! => {"changed": false, "msg": "Error while gathering data set information", "rc": null, "stderr": "Failure during execution of mvscmd; Return code: 12; stdout: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@z@zz@@@@@@@@aa@@@@@@@@@@@\u0015@@@@@@@@\u0015@KKLKKKKKKKKNKKKKKKKKKKKKKKMPLKKKKKKKKKLLK\u0015@@@}KLKKKKKKKKNKKKKKKKKK}@\u0015@@@@@@K@@@@\u0015@@@@@@@@\u0015@@@K@@@@@\u0015; stderr: ", "stderr_lines": ["Failure during execution of mvscmd; Return code: 12; stdout: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@z@zz@@@@@@@@aa@@@@@@@@@@@\u0015@@@@@@@@\u0015@KKLKKKKKKKKNKKKKKKKKKKKKKKMPLKKKKKKKKKLLK\u0015@@@}KLKKKKKKKKNKKKKKKKKK}@\u0015@@@@@@K@@@@\u0015@@@@@@@@\u0015@@@K@@@@@\u0015; stderr: "], "stdout": null, "stdout_lines": null}
My guess is there is a codepage transformation going mad here, but I've tried to translate manually the garbage I get and have not been able to obtain a legible text. Incidentallty, this happens
after the dataset has been downloaded.
As reference, the task where this happens is this:
- name: Download mainframe text file
zos_fetch:
src: T8864.U0G.SIMPLRC.B64
dest: ./simplrc.b64
encoding:
from: IBM-1145
to: UTF-8
But I'm more interested about the garbled message thing that the specific error in itself (that I will try to fix once I know what it is!)
Thanks in advance!
------------------------------
Jordi Guillaumes Pons
------------------------------