# New to Ansible zos

**URL:** <https://forum.ansible.com/t/new-to-ansible-zos/11131>\
**Category:** Get Help\
**Tags:** zos, playbook, documentation, howto\
**Created:** [November 25, 2024, 2:17pm UTC](https://forum.ansible.com/t/new-to-ansible-zos/11131 "2024-11-25T14:17:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aruldba](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@aruldba](https://forum.ansible.com/u/aruldba)\
**Post date:** [November 25, 2024, 2:17pm UTC](https://forum.ansible.com/t/new-to-ansible-zos/11131/1 "2024-11-25T14:17:20Z")

</div>

I’m trying to run simple playbook to make sure setup is right. But not able to figure out what would be the cause for playbook to get stuck. Pretty new to Ansible being a Db2 DBA.

debug2: mux\_master\_process\_new\_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term “xterm-256color”, cmd “/bin/sh -c ‘\_BPXK\_AUTOCVT=ON ZOAU\_HOME=/usr/lpp/IBM/zoau/v1r3/ PYTHONPATH=/usr/lpp/IBM/zoau/v1r3/lib/3.12/zoautil\_py/ LIBPATH=/usr/lpp/IBM/zoau/v1r3/lib:/usr/lpp/IBM/cyp/v3r12/pyz/lib:/lib:/usr/lib:. PATH=/usr/lpp/IBM/zoau/v1r3/bin:/usr/lpp/IBM/cyp/v3r12/pyz/bin:/bin \_CEE\_RUNOPTS=’”‘“‘FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)’”’“’ \_TAG\_REDIR\_ERR=txt \_TAG\_REDIR\_IN=txt \_TAG\_REDIR\_OUT=txt LANG=C PYTHONSTDINENCODING=cp1047 /usr/lpp/IBM/cyp/v3r12/pyz/bin/python3 && sleep 0’”, env 1  
debug3: mux\_master\_process\_new\_session: got fds stdin 6, stdout 7, stderr 8  
debug2: fd 6 setting O\_NONBLOCK  
debug2: fd 7 setting O\_NONBLOCK  
debug2: fd 8 setting O\_NONBLOCK  
debug1: channel 2: new session [client-session] (inactive timeout: 0)  
debug2: mux\_master\_process\_new\_session: channel\_new: 2 linked to control channel 1  
debug2: channel 2: send open  
debug3: send packet: type 90  
debug3: receive packet: type 91  
debug2: channel\_input\_open\_confirmation: channel 2: callback start  
debug2: client\_session2\_setup: id 2  
debug1: Sending environment.  
debug1: channel 2: setting env LANG = “C.UTF-8”  
debug2: channel 2: request env confirm 0  
debug3: send packet: type 98  
debug1: Sending command: /bin/sh -c ‘\_BPXK\_AUTOCVT=ON ZOAU\_HOME=/usr/lpp/IBM/zoau/v1r3/ PYTHONPATH=/usr/lpp/IBM/zoau/v1r3/lib/3.12/zoautil\_py/ LIBPATH=/usr/lpp/IBM/zoau/v1r3/lib:/usr/lpp/IBM/cyp/v3r12/pyz/lib:/lib:/usr/lib:. PATH=/usr/lpp/IBM/zoau/v1r3/bin:/usr/lpp/IBM/cyp/v3r12/pyz/bin:/bin \_CEE\_RUNOPTS=’“'”‘FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)’“'”’ \_TAG\_REDIR\_ERR=txt \_TAG\_REDIR\_IN=txt \_TAG\_REDIR\_OUT=txt LANG=C PYTHONSTDINENCODING=cp1047 /usr/lpp/IBM/cyp/v3r12/pyz/bin/python3 && sleep 0’  
debug2: channel 2: request exec confirm 1  
debug3: send packet: type 98  
debug3: client\_repledge: enter  
debug3: mux\_session\_confirm: sending success reply  
debug2: channel\_input\_open\_confirmation: channel 2: callback done  
debug2: channel 2: open confirm rwindow 100000 rmax 32768  
debug1: mux\_client\_request\_session: master session id: 2  
debug3: receive packet: type 99  
debug2: channel\_input\_status\_confirm: type 99 id 2  
debug2: exec request accepted on channel 2  
debug2: channel 2: rcvd adjust 65536  
\<\<\<  
11645 1732304901.61811: stderr chunk (state=3):

> > > debug2: channel 2: rcvd adjust 967232  
> > > \<\<\<  
> > > 11645 1732304901.61827: stderr chunk (state=3):  
> > > debug2: channel 2: read failed rfd 6 maxlen 32768: Broken pipe  
> > > debug2: channel 2: read failed  
> > > debug2: chan\_shutdown\_read: channel 2: (i0 o0 sock -1 wfd 6 efd 8 [write])  
> > > debug2: channel 2: input open → drain  
> > > \<\<\<  
> > > 11645 1732304901.61833: stderr chunk (state=3):  
> > > debug2: channel 2: ibuf empty  
> > > debug2: channel 2: send eof  
> > > debug3: send packet: type 96  
> > > debug2: channel 2: input drain → closed  
> > > \<\<\<  
> > > 11645 1732305000.94285: stderr chunk (state=3):  
> > > debug3: send packet: type 80  
> > > \<\<\<  
> > > 11645 1732305000.96105: stderr chunk (state=3):  
> > > debug3: receive packet: type 82  
> > > \<\<\<  
> > > 11645 1732305100.94554: stderr chunk (state=3):  
> > > debug3: send packet: type 80  
> > > \<\<\<  
> > > 11645 1732305100.96570: stderr chunk (state=3):  
> > > debug3: receive packet: type 82  
> > > \<\<\<  
> > > 11645 1732305200.94806: stderr chunk (state=3):  
> > > debug3: send packet: type 80  
> > > \<\<\<  
> > > 11645 1732305200.96881: stderr chunk (state=3):  
> > > debug3: receive packet: type 82  
> > > \<\<\<  
> > > 11645 1732305300.95024: stderr chunk (state=3):  
> > > debug3: send packet: type 80  
> > > \<\<\<  
> > > 11645 1732305300.96456: stderr chunk (state=3):  
> > > debug3: receive packet: type 82  
> > > \<\<\<  
> > > 11645 1732305400.95204: stderr chunk (state=3):  
> > > debug3: send packet: type 80  
> > > \<\<\<  
> > > 11645 1732305400.97525: stderr chunk (state=3):  
> > > debug3: receive packet: type 82  
> > > \<\<\<  
> > > ^Z  
> > > [1]+ Stopped ansible-playbook tso-cmd.yaml -i yourhost.yaml -vvvvvvv  
> > > angamua@5CG237105L:~/Arul$

Thanks  
Arul

---

<div class="post-metadata">

**Author:** ![ddimatos](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ddimatos/32/1040_2.png) [@ddimatos](https://forum.ansible.com/u/ddimatos)\
**Post date:** [February 3, 2025, 4:57am UTC](https://forum.ansible.com/t/new-to-ansible-zos/11131/2 "2025-02-03T04:57:27Z")

</div>

The question is a bit dated, were you able to solve this?

Your PYTHONPATH can end in 3.12, e.g

```auto
PYTHONPATH=/usr/lpp/IBM/zoau/v1r3/lib/3.12/zoautil_py/

```

but I don’t think that is your issue.

Seeing the playbook and the full verbose log would help diagnose the issue (I would minimize it to the recreate).
