From 48442a4a330e28505d279caeb19a92b5d4cbb3d0 Mon Sep 17 00:00:00 2001 From: vvvlc Date: Fri, 25 Jan 2019 16:42:54 +0100 Subject: [PATCH] added pipelining for z/OS (#51212) * added pipelining for z/OS * Update docs/docsite/rst/reference_appendices/faq.rst agreeed Co-Authored-By: vvvlc * Update docs/docsite/rst/reference_appendices/faq.rst agreeed Co-Authored-By: vvvlc * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc * Update docs/docsite/rst/reference_appendices/faq.rst * Update docs/docsite/rst/reference_appendices/faq.rst * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc * Update faq.rst reformatted section for error message `The module libpython2.7.so was not found.` --- docs/docsite/rst/reference_appendices/faq.rst | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/docs/docsite/rst/reference_appendices/faq.rst b/docs/docsite/rst/reference_appendices/faq.rst index 419aa3e8d4..52faeddfa6 100644 --- a/docs/docsite/rst/reference_appendices/faq.rst +++ b/docs/docsite/rst/reference_appendices/faq.rst @@ -229,19 +229,30 @@ There are a few common errors that one might run into when trying to execute Ans * Version 2.7.6 of python for z/OS will not work with Ansible because it represents strings internally as EBCDIC. -To get around this limitation, download and install a later version of `python for z/OS `_ (2.7.13 or 3.6.1) that represents strings internally as ascii. Version 2.7.13 is verified to work. + To get around this limitation, download and install a later version of `python for z/OS `_ (2.7.13 or 3.6.1) that represents strings internally as ASCII. Version 2.7.13 is verified to work. -.. error:: - /usr/bin/python: EDC5129I No such file or directory +* When ``pipelining = False`` in `/etc/ansible/ansible.cfg` then Ansible modules are transferred in binary mode via sftp however execution of python fails with -To fix this set the path to the python installation in your inventory like so:: + .. error:: + SyntaxError: Non-UTF-8 code starting with \'\\x83\' in file /a/user1/.ansible/tmp/ansible-tmp-1548232945.35-274513842609025/AnsiballZ_stat.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details + + To fix it set ``pipelining = True`` in `/etc/ansible/ansible.cfg`. + +* Python interpret cannot be found in default location ``/usr/bin/python`` on target host. + + .. error:: + /usr/bin/python: EDC5129I No such file or directory + + To fix this set the path to the python installation in your inventory like so:: zos1 ansible_python_interpreter=/usr/lpp/python/python-2017-04-12-py27/python27/bin/python -.. error:: +* Start of python fails with ``The module libpython2.7.so was not found.`` + + .. error:: EE3501S The module libpython2.7.so was not found. -On z/OS, you must execute python from gnu bash. If gnu bash is installed at ``/usr/lpp/bash``, you can fix this in your inventory by specifying an ``ansible_shell_executable``:: + On z/OS, you must execute python from gnu bash. If gnu bash is installed at ``/usr/lpp/bash``, you can fix this in your inventory by specifying an ``ansible_shell_executable``:: zos1 ansible_shell_executable=/usr/lpp/bash/bin/bash