Skip to content

Commit c9547c9

Browse files
committed
some formatting, some cleanup
Signed-off-by: Ketan Kelkar <[email protected]>
1 parent ebe8082 commit c9547c9

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

docs/docsite/rst/os_guide/intro_zos.rst

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ files from UTF-8 encoded text files and EBCDIC-encoded text files.
3838
Default behavior for an un-tagged file or stream is determined by the program, for example,
3939
`IBM Open Enterprise SDK for Python <https://www.ibm.com/products/open-enterprise-python-zos>`__ defaults to the UTF-8 encoding.
4040

41-
Ansible modules will not read or honor any file tags. It is up to the user to determine the nature of remote data.
41+
Ansible modules will not read or honor any file tags. It is up to the user to determine the nature of remote data and tag it appropriately.
42+
Data sent to remote z/OS nodes is by default encoded in UTF-8 and is not tagged.
4243
This is achieveable with an additional task using the ``builtin.command`` module and applying any necessary encoding conversion.
4344

4445
.. code-block:: yaml
@@ -47,10 +48,9 @@ This is achieveable with an additional task using the ``builtin.command`` module
4748
ansible.builtin.command: chtag -tc ibm1047 my_file.txt
4849
4950
50-
Data sent to remote z/OS nodes is by default encoded in UTF-8 and is not tagged.
5151
The z/OS UNIX remote shell defaults to an EBCDIC encoding for un-tagged data streams.
5252
This mismatch in data encodings can be resolved with the ``PYTHONSTDINENCODING`` environment variable,
53-
which tags the pipe with the encoding specified.
53+
which tags the pipe used by python with the specified encoding.
5454
File and pipe tags can be used for automatic conversion between ASCII and EBCDIC.
5555
But only by programs on z/OS which are aware of tags and honor them.
5656

@@ -149,9 +149,10 @@ Include the following configurations when setting the remote environment for any
149149
150150
151151
Note, the remote environment can be set any of these levels:
152-
* inventory - inventory.yml, group_vars/all.yml, or host_vars/all.yml
153-
* playbook - ``environment`` variable at top of playbook.
154-
* block or task - ``environment`` key word.
152+
153+
* inventory - inventory.yml, group_vars/all.yml, or host_vars/all.yml
154+
* playbook - ``environment`` variable at top of playbook.
155+
* block or task - ``environment`` key word.
155156

156157
For more details, see :ref:`playbooks_environment`.
157158

@@ -216,7 +217,7 @@ Note, the ``'\x81'`` below may vary based on the target user and host:
216217
Unreadable Characters
217218
---------------------
218219

219-
Seeing unreadable characters in playbook output is most typically and an EBCDIC encoding mix up.
220+
Seeing unreadable characters in playbook output is most typically an EBCDIC encoding mix up.
220221
Double check that the remote environment is set up properly.
221222
Also check the expected file encodings, both on the remote node and the controller.
222223
ansible-core modules will assume all text data is UTF-8 encoded, while z/OS may be using EBCDIC.
@@ -229,19 +230,11 @@ whether that's failing to auto convert EBCDIC to UTF-8 or erroneously attempting
229230
Using z/OS as a Control Node
230231
----------------------------
231232

232-
.. Dan blog- https://community.ibm.com/community/user/ibmz-and-linuxone/blogs/daniel-jast1/2023/12/07/red-hat-aap-on-ibm-z-and-linuxone?communityKey=ce54fe94-0145-4832-a0ef-4ea81d6062cc
233-
.. RH blog- https://www.redhat.com/en/blog/red-hat-ansible-automation-platform-now-available-on-ibm
234-
235233
The z/OS operating system currently cannot be configured to run as an Ansible control node.
236234
Despite being POSIX-compliant, the UNIX System Services interface also cannot be configured to run as an Ansible control node.
237235

238-
There are some options available on the IBM Z platform:
236+
There are some options available on the IBM Z platform to set up as a control node:
239237

240238
* IBM z/OS Container Extensions (zCX)
241239
* Red Hat OpenShift on IBM zSystems and LinuxONE
242-
* Linux on IBM Z
243-
244-
.. potential links:
245-
.. https://www.ibm.com/support/z-content-solutions/container-extensions/ | https://www.ibm.com/products/zcx-openshift
246-
.. https://www.ibm.com/docs/en/rhocp-ibm-z
247-
.. https://www.ibm.com/z/linux
240+
* Linux on IBM Z

0 commit comments

Comments
 (0)