You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/playbooks.rst
+51-42Lines changed: 51 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,11 @@ Playbooks
9
9
There are sample playbooks that demonstrate the **IBM z/OS CICS collection**
10
10
functionality in the `samples repository`_.
11
11
12
+
The sample playbooks fall into two categories:
13
+
14
+
- Operations on CICS and CICSPlex SM resources and definitions. The sample playbooks use the CMCI modules to achieve various real-life use cases.
15
+
- CICS provisioning. The sample playbook demonstrates how a set of modules for provisioning and managing CICS TS data sets and utilities can be used to provision, start, stop, and deprovision a CICS region.
The value for the property **ansible_host** is the hostname of the managed node;
103
-
for example, ``ansible_host: example.com``
104
-
105
-
The value for the property **zos_target_username** is the user name to use when
106
-
connecting to the host; for example, ``ansible_user: ibmuser``.
107
-
108
-
The value for the property **ansible_python_interpreter** is the target host
109
-
Python path. This is useful for systems with more than one Python installation,
110
-
or when Python is not installed in the default location **/usr/bin/python**;
111
-
for example, ``ansible_python_interpreter: /usr/lpp/rsusr/python39/bin/python``
108
+
- **ansible_host**: The value of this property identifies the hostname of the managed node. For example: ``ansible_host: example.com``
109
+
- **zos_target_username**: The value of this property identifies the user name to use when connecting to the host. For example: ``ansible_user: ibmuser``
110
+
- **ansible_python_interpreter**: The value of this property specifies the Python path for the target host. For example: ``ansible_python_interpreter: /usr/lpp/rsusr/python39/bin/python``
111
+
This is useful for systems with more than one Python installation, or when Python is not installed in the default location **/usr/bin/python**.
112
112
113
-
For more information on Python configuration requirements on z/OS, refer to
114
-
Ansible `FAQ`_.
113
+
For more information about the Python configuration requirements on z/OS, see the Ansible `FAQ`_.
115
114
116
-
Behavioral inventory parameters such as ``ansible_port`` which allows you
117
-
to set the port for a host can be reviewed in the
118
-
`behavioral inventory parameters`_.
115
+
For behavioral inventory parameters such as ``ansible_port`` which allows you to set the port for a host, see `behavioral inventory parameters`_.
The properties that define the environment variables are as follows:
160
143
161
-
The included sample variables file (zos_host.yml) contains variables specific to
162
-
the playbook as well as the following:
144
+
- **BPXK_AUTOCVT**: The value must be ``ON``.
145
+
- **ZOAU_HOME**: The value of this property identifies the ZOA Utilities install root path. For example: ``/usr/lpp/IBM/zoautil``
146
+
- **PYTHONPATH**: The value of this property identifies the ZOA Utilities Python library path. For example: ``/usr/lpp/IBM/zoautil/lib/``
147
+
- **LIBPATH**: The value of this property specifies both the path to the Python libraries on the target and the ZOA Utilities Python library path, separated by colons ``:``. For example: ``/usr/lpp/IBM/zoautil/lib/:/usr/lpp/rsusr/python39/lib:/lib:/usr/lib:.``
148
+
- **PATH**: The value of this property identifies the ZOA utilities BIN path and the Python interpreter path, separated by colons ``:``. For example: ``/usr/lpp/IBM/zoautil/bin:/usr/lpp/rsusr/python39/bin/python:/bin``
163
149
164
150
.. code-block:: yaml
165
151
@@ -181,14 +167,20 @@ the playbook as well as the following:
Ansible has a module defaults feature to use the same values during every use of
191
-
a module, rather than repeating them everytime. Here we can set the host url and
181
+
a module, rather than repeating them everytime.
182
+
183
+
For example, when using CMCI modules to manage CICS and CICSPlex SM resources and definitions, you can set the host url and
192
184
credentials of the **cmci_get** module to be the same throughout the playbook.
193
185
194
186
.. code-block:: yaml
@@ -200,7 +192,7 @@ credentials of the **cmci_get** module to be the same throughout the playbook.
200
192
cmci_password: "{{ cmci_password }}"
201
193
202
194
203
-
If you wish to use the same values in **all** CMCI modules, you can assign them
195
+
If you want to use the same values in **all** CMCI modules, you can assign them
204
196
to the group called **cmci_group**.
205
197
206
198
.. code-block:: yaml
@@ -212,6 +204,23 @@ to the group called **cmci_group**.
212
204
cmci_user: "my.username"
213
205
cmci_password: "my.password"
214
206
207
+
208
+
Likewise, you can easily apply a default set of CICS TS data sets and utilities for the provisioning or de-provisioning of CICS regions.
209
+
If you want to use the same values in **all** CICS TS data set provisioning modules, you can assign them to the group called **region_group**.
210
+
For example, the following **module_defaults** example indicates that the SDFHLOAD library of the CICS installation is created by default using the templated location of
211
+
``CTS610.CICS740.<< data_set_name >>``, and the region data sets are to be created by using the templated location of ``{{ansible_user}}.REGIONS.{{applid}}.<< data_set_name >>``.
0 commit comments