added pipelining for z/OS (#51212)
* added pipelining for z/OS * Update docs/docsite/rst/reference_appendices/faq.rst agreeed Co-Authored-By: vvvlc <vitezslav+github@vvvlcek.info> * Update docs/docsite/rst/reference_appendices/faq.rst agreeed Co-Authored-By: vvvlc <vitezslav+github@vvvlcek.info> * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc <vitezslav+github@vvvlcek.info> * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc <vitezslav+github@vvvlcek.info> * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc <vitezslav+github@vvvlcek.info> * Update docs/docsite/rst/reference_appendices/faq.rst Co-Authored-By: vvvlc <vitezslav+github@vvvlcek.info> * 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 <vitezslav+github@vvvlcek.info> * Update faq.rst reformatted section for error message `The module libpython2.7.so was not found.`
This commit is contained in:
parent
d5add305ab
commit
48442a4a33
1 changed files with 17 additions and 6 deletions
|
@ -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 <https://www.rocketsoftware.com/zos-open-source>`_ (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 <https://www.rocketsoftware.com/zos-open-source>`_ (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
|
||||
|
||||
|
|
Loading…
Reference in a new issue