-
Hello, I hope I am asking this in the right place. I will be working on a project which will involve running ansible playbooks on the z/OS. I wanted to start learning with something simple and I think I am close but I stuck on a python syntax error.
On the z/OS I have
On my workstation I have ansible with installed ibm_zos_core collection. "The TSO command "LU GPUSER" execution failed.", "changed": false, "output": [{"command": "LU GPUSER", "rc": 16, "content": ["\udcc2\udcd7\udce7\udce6\udcf0\udcf0\udcf0\udcf0\udcc9@\u0167\udc85\udc83@\udc95\udc96\udca3@\udc86\udc96\udca4\udc95\udc84\u0015"], "lines": 1}], "failed": true, "invocation": {"module_args": {"commands": ["LU GPUSER"]}}} Interestingly, if I intercept the temporary python script uploaded to the z/OS and manually run it via python interpreter on my z/OS unix shell it actually works and gives me good output. Does it have something to do with conversion (or lack of it) from ascii to ebdic? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi, thanks for reaching out to the team, could you tell us which version of the collection you're using as well as which version of Ansible? It's worth noting we currently don't certify that our collection will work completely with ZOAU versions greater than 1.1.1 nor with Python 3.10, we're working on that for our next releases. |
Beta Was this translation helpful? Give feedback.
-
The latest PTF/patch from IBM Enterprise Python for 3.10 and 3.11 supports a new environment variable that allows for |
Beta Was this translation helpful? Give feedback.
Hi, thanks for reaching out to the team, could you tell us which version of the collection you're using as well as which version of Ansible? It's worth noting we currently don't certify that our collection will work completely with ZOAU versions greater than 1.1.1 nor with Python 3.10, we're working on that for our next releases.
It could be that your issue is related to the environment variables you have set in all.yml and host_vars.yml. When you run the python script manually, are there any differences on the environment/path set on your shell and the one you configure in Ansible?
It would also help if you could run the playbook in verbose mode with
-vvv
and share the output it displays…