-
New to Ansible Z/OS area and I'm having difficulty in troubleshooting the playbook. Ansible playbook just get stuck and in Z the job is swapped out. Any idea on what could be the cause. cfg and playbook content as listed below. Appreciate the help. For reference on configuration:
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 1 reply
-
Can you provide some example output to show the error? When you say the job is swapped out, what does that mean? |
Beta Was this translation helpful? Give feedback.
-
Hello Rich, Here it is Playbook just sits there and I dont see any errors in Linux or Z.
|
Beta Was this translation helpful? Give feedback.
-
Hi @ArulDBA, if you could use code tags going forward we can be sure that indentation is correct on source. There are a number of inconsistencies in what has been shared, so bare with me while I explain what I am seeing.
If so, Should you want to use the shell command, here is an example with the Ansible command module, you will have to substitute the
As I noted above, we have module zos_mvs_raw that should be used instead.
In your playbook you should change: For: The LIBPATH in the playbook which is: Either you have another source for environment variables, e.g. It would be safer if you use the non-production template for playbooks here. It will require a minor edit, which I made for you below, in fact you could run this playbook as I have written it. I would avoid gather_facts for now by setting it to
I hope this gets you further. |
Beta Was this translation helpful? Give feedback.
-
Thank you @ddimatos. I'm able to run the sample playbook given by you in the above response. I have asked sys prog to talk to Tectia support. |
Beta Was this translation helpful? Give feedback.
-
We changed the SSH_SFTP_HOME_MVS=NO and still see playbook not able to run successfully. We have opened a ticket with Tectia & SSH>com folks and waiting for their response. <<<
|
Beta Was this translation helpful? Give feedback.
-
I am not sure When you ran the task below, how was it run with
|
Beta Was this translation helpful? Give feedback.
-
Hello @ddimatos We got a suggestion from tectia & SSH.com to disable ansible pipelining and try. We disabled pipelining in ansible playbook, and it works as expected. Tectia is looking into why pipelining is not working but we can close this discussion. |
Beta Was this translation helpful? Give feedback.
-
I will close this ticket, based on your response. If you need to get further assistance, please open a new conversation or ticket, and reference slack discussion 1802. |
Beta Was this translation helpful? Give feedback.
I will close this ticket, based on your response. If you need to get further assistance, please open a new conversation or ticket, and reference slack discussion 1802.