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
* Update to support job id up to 7 numeric positions (#259)
Signed-off-by: ddimatos <[email protected]>
* Bugfix/3687 (#251)
* 3687: looking for 'JCL ERROR' in return code message, since that will not
contain a "CC" value to return. Temporarily assigning that a CC=16
* Expanded changes for JCL error to 'fail fast'
+ added "JCL ERROR" to job_completion_messages list
+ corrected grammar in error message@615 (was 'slow to response')
* rebuilt timing delay loops for zos_job_submit
* fixed variable usage, added more meaningful error for JCL ERROR and ABEND detectors
* simplified jcl error search string
corrected logic in test (testing for failure)
* added debug call/conv strings to return from job_submit, to understand blank returns
* argh...typo in the tracking string
* continuing to track non-response issue
* corrected issue with temp_file.name (may need to add comment that it is a string, not an object)
* eliminated duplicate temp file 2 removal
* adding badjcl indicator, since the glitch moved
* added another fail_json to job_submit
* removed failed=true as an assertion
* removed tracking statements.
* minor corrections on comments... still need to discuss return code and no-wait action changes
* changed job to return msg_code=None on JCL error
updated documentation of return to note this
* Changed documentation to help clarify the wait/wait_time_s issue
Fixed another all-caps error message
Added JobId info to long-running meessage note.
* forgot to switch back to black editor...autopep8 moved the import statements
argh!
* Added discovered customer issue into description for the 'cmd' parame… (#265)
* Added discovered customer issue into description for the 'cmd' parameter.
* Update zos_operator.py
Minor text edits
* removed colon from 'for example', which tripped a sanity test in documentation
Co-authored-by: RadhaV2020 <[email protected]>
* Bugfix/5950 (#260)
* bugfix 5950 (exception thrown when a job info didn't find a matching job)
New behavior: job.py returns a single record populated with "NOTFOUND"
output, query, and submit functions had a small change to document that a single notfound could be returned
test feature added to look for job_name=NOTAJOB to see if the notfound entry is returned
* minor change removing a print statement from job.py
* added missing blank line between functions (pep8)
* corrected two outdated comments, and verified 'not found' code is in place.
* standardized on NOTFOUND, tweaked stepname.
fixed the 'no jobs found' reaction.
* correction on adding a 'not found' message...needed to pass blanks in one case.
* corrected issue with job value assignment in 'jobs not found'
corrected grammatical typo in error message in submit
* changes to get documentation more consistent,
and not-found response more system complient
* corrected test_job_output to look for the new 'not found' text
* Changed the not found response to give None responses on system/subsystem
Documentation was general enough to work with this
Changed unit test to look for the ret_code/msg value
* job.py didn't save, so I had to re-save and re-push
* typo in tester: typed "Jobs" instead of "jobs". argh!
* Changed return code to JOB NOT FOUND on empty record, to match other response messages.
Changed JCLERROR return code to mixed case, for readability.
Corrected documentation entries that needed to match code changes.
Changed output test to match code changes.
* Update zos_mvs_raw.py (#279)
Removed the duplicate "name" entry from the examples. Defect fix for https://jsw.ibm.com/browse/NAZARE-6112.
* Enhancement/3723 (#256)
* added '_parse_stepwise' to job_output
.. this should add job["ret_code"]["stepwise"][<step_name>] = <last field of CC string> to the job entries
.. assuming that the full response is available when the data is pulled
* whoopsie: pep8 issue on a regex string
* .. expanded documentation to show 'steps' return in the 3 impacted functions
.. added/expanded a test on zos_job_output to make sure steps were being returned
* Adjusting return definition for yaml compliance
Correcting typo in 'sample' return, that wasn't encapsulated
Added 1 more layer to output function test
* added pretty print to uss_file_to_mvs_pds_member to see what is happening there
* added more output around new sibmit result test
* issue moved, so more output messages
* added directory list to exception message...temporary
* listdir not listdirs... argh
* pep8 issue
* correction because black formatter couldn't handle [0:
* removing tmp literal
* simplified vars() to print(result)
* changed a dictionary (typo) back to a list, so I can append to it.
* more test tweaking, on test zos_job_output
* corrected test to look for steps in ret_code, not in main return object
* corrected path import
* changed a test in zos_data_set, which doesn't account for the response on a pre-existing file.
* added tracking output to test_uss_encoding_conversion_mvs_ps_to_mvs_vsam
(looks like a case where submit may not return a job list?)
* copied 5950 changes to (job.py) into this branch.
changed 'stepid' to 'step_name' and 'stepcc' to 'step_name' (snake?).
updated documentation in submit and output commands.
* turns out ansible sanity checks flake-8 as well as pep-8.
Space before semicolon line 305 of encode.
* Changed unit test to use new 'step_name' instead of 'stepid'.
* Merged job.py 5950 into this ticket.
Added 'JOB NOT FOUND' into doc message in job.py.
Corrected description of 'abend' example in all 3 zos_job modules. (be instead of better).
* Corrected documentation to match field names from job.py.
Swapped "The" to replace "Actual" because of implications.
* Copy6113 (#282)
* Initial proposal to have copy create data set when copying uss file to non-existant data set.
Code is there, documentation is there, but I haven't done sanity run yet.
* Removal of model_ds from copy function and sub-functions
Now through ansible-sanity.
This should address Jira 6183 as well as 6113
Note: 2 minor changes to zos_fetch based on a sanity test issue there with 128/130 strings
* Changed documentation to set force default to true, which is implemented in action
* Changes based on demetri's testing:
1 - Case correction for backup_name member
2 - explicitly generating member name, instead of depending on dcp to generate a value
* tried to remove extra blank line on 1905
* Changes based on pull request comments.
* Pull request updates to doc
Signed-off-by: ddimatos <[email protected]>
* partial change moving options to suboptions - not stable
* Local *3.8) sanity passing on changed indents and size changes.
Need to do playbook testing.
* corrected zos_copy to auto-populate destination_dataset if it is not provided
* removed a find_test that looked for files it had not created.
* corrected suboptions in dictionary definition
* bugfixes from playbook:
copy to pds was allowing invalid filenames (period in member, member>char, lower member)
rebuild workbook tests to make sure these tested okay
Co-authored-by: ddimatos <[email protected]>
* Feature zos_mount module added (#280)
* Initial work on zos_mount. This is NOT complete.
Making sure push goes to the right place.
* Initial commit of git_mount: needs unit tests
* Basic mount/unmount testing passed manually
* made interface more ansible-like
cleaned up formatting
saving before new test runs
* passed PEP8 testing in ansible-sanity... still working on documentation
* All p3p8 resolved. Down to 6 validte-module issues.
* final series of ansible-test issues resolved locally
moving to server-level testing
* added mount to correct directory
* removed zos_mount from wrong folder
* GPL3 header correction
* Update zos_mount.py
Added second line between metadata and documentation, to see if that addresses the license issue
* new parameters for mount, aliases for mount, updated ignore files
* minor tweak to ignore file
* corrected string search and use of tmp directory
* corrected code for pep8 provisions
* pulled dev back in for code updates. Touched ignore files.
* Responded to Blake and Nehnam's recommendations, except:
1 - Still not sure if cp->zos_copy change will help
2 - Need to add unit tests
3 - Need to run my test playbooks again
* responding to Blake and Behnam's ssuggestions
* code changes per Blake and Behnam's suggestions
Still looking at zos_copy
Still need to build unit tests
* simplified df to search with python for safe shell run...
re-tested mount idempotence
Need to test multiline comments for bpxprm modifier
* corrections for multiline comments. All manually tested.
first pass at function test entries.
* removed zos_mount functional test until I can get it to pass locally.
* forcing rebuild
* corrected pep8 errors introduced during recommit
* re-pulled dev branch, added basic mount tests component
* added functional tests for mount, double mount, and permanent configs
* pep8 corrections from ansible-sanity
* return value edits
* removed 'persistent' from returns because it was tripping up sanity
* corrected documentation on comments I missed previously.
* pep8 fixes...found vscode was adding spaces when moving lines around.
* Reponse changes to December review. No new tests yet.
* corrected bad merge.
* remerge
* Added newer licensing info at top.
* updated zos_mount to use 2021 header
minor test tweak
merged current dev into mount
* changing includes and renaming persistent_ds to handle sub-vars
* working through pep 8 and reducing imports
* Copied backupOper routine because of import issues.
* Figured out how to return a sub-dictionary in RETURN doc section
* added two detail lines in the routine that is closest to the JSON error
* pep8 issues in the test module
* changed zos_test to use the upper of the first component of sysname
...interesting that it returns differently when called manually
* added to test import funnctionality to see if DataSet class impacts data_set implementation
* Moving imports around to get data_set functions working
* commenting out one of the routines firing data_set entry, to see if the error moves
* change a few os calls to hosts.all.os
removed to assertions that couldn't complete because of scope
* increased mount space allocation slightly
really, previous run was in a bad initial condition
* Added missing spaces in zos_mount/unmount function
Changed test cleanups from hosts.all.os to hosts.all.shell
* argh: black formatter adds a space before a colon (zos_mount: 618)
content_lines[startidx : endidx + 1] will trigger a sanity fault
* in zos_mount, a discription in the doc was confusing
in test_zos_mount_func, 2 values were not passed during an unmount that were mandatory
* changed from shell/cp to zos_copy, so that pds members could be created
* corrected over-indent in test
* test routine was using 2 different filenames
* Changed test to fix a bad removal step, and to comment out the tmp_file removal
* changed implementation of populate_tmpfile to see if I can get it to stick around
* changing tempfile to open 'w' instead of 'w+b'
* hard-coding tmpfile creation to see if that lets the file exist
* changed copy to shell/cp
* adding trace/track messages (stonehenge style), and escaping a DS/member name's parentheses
* resolving pep8 issues
* zos_data_set call had extransous character in it
* correcting print statement
* changed testfile generator to be target-local
* bad block comment
* switching back to zos_copy, now that the tmp file is on the target
* fixed block comment
* changed comments in test to tabcomment, which is what it is defined as in zos_mount
* added tracking on comment tester for last of test chain
* space after paren in a print statement
* corrected issue where backup_name was not being loaded from persistent data section
* changed backup_name mechanism to use mt_backupOper convention
* added remote_src=True for copy-back, so the file should get copied (250 of mount test)
* changed zos_copy calls to include is_binary=True...trying to reconcile encoding
* changing to using outbound temp file on ansible server, instead of target
* adding cat of original test_tmp_file_filename to check encoding.
* back up step to check copy origin
* tryping to use copy_p2uss and uss2mvs instead of zos_copy for testing
* back to cp commands: zos_copy adds a 'F', and the copy functions won't import to test
* added missing spaces to the cp commands
* trying hosts.all.copy to move the tmp file to the target systems
* propagated 2-step copy to comment routine
un-commented the file deleters
* added more output in bcb
* space after paren in new print statements
* trying copy...content instead of copy...src
* removed an extra blank line
* changed the file's flag after it landed
chtag -t -c ISO8859-1 (destfile)
* it looks like chtag is making the file readable... trying for the third display
* commented out the dataset assertion until I find the setting to make data_set work
* re-introducing zos_copy to see if the sole issue was the file flag
* propagated change back to zos_copy + chtag to the other cases.
Retesting before moving to the data_set issue
* added remote_src=True to the zos_copy
* trying remote_src=true for copy in bcb, since it worked in bnn
* Added data set removal at the finally stage of tests.
Removed comment about zos_copy in the mount module.
* In test, removed the -volumes argument
* put volumes option back in
* changed test aggregate name because of catalog glitch.
* 2-10: removed redundant entry for zos_mount
2-11 & 2-12: added an entry for zos_mount
* Changed hard-coded "IMSCN1" to "222222", which should usually be a temp volume.
* Reponse to latest code reviews.
Corrected documentation, variable naming.
Added remount test.
* added second blank link @141 for p3p8 requirement in test
* Updates to address comments in git PR
Signed-off-by: ddimatos <[email protected]>
* Addressed PR comments regarding error messages needing context.
Changed from run_command(tsocommand) to mvs_cmd.ikjeft01 calls for compatibility.
* corrections to 2 issues that failed sanity test
* corrected a bad default condition. We changed case of mount_opts, but I forgot to uppercase the default.
* restored comment about mounting a dataset that is already mounted.
* corrected a test looking in old variable.
* corrected issue with stderr being blanked out after it was populated.
* changed commands to authorized=True
* reverted calls to (rc, stdout, stderr) = module.run_command(
fullumcmd, use_unsafe_shell=False
)
because of error messages in mvs_cmd
* changed behavior so if rc=0, any text returned goes to stdout.
* needed to handle None return in stdout
* modified test (double mount) to check stderr and stdout
* modified tests to use persistant/data_store i/s/o data_set_name
* corrected parameter error (dataa instead of data)
* changed 'tabcomment' to 'comment' in test
* updates to zos_mount: moved 'comments' to under persistant grouping
corrected test_zos_mount_func to use the new comment format
fixed text processor for comments to remove nulls embedded in file
* Pushed these changes as a commit for @RadhaV2020
Signed-off-by: ddimatos <[email protected]>
* Update copyright to 2021 for files in role samples
Signed-off-by: ddimatos <[email protected]>
* Updated copyright year to 2021 for files changed in the respective year for GID RadhaV2020
Signed-off-by: ddimatos <[email protected]>
* changed test_zos_find_func, removing a test based on pre-existance of files.
Co-authored-by: ddimatos <[email protected]>
* Update common code used to obtain job content such it is not trucated by the unrelated record count (#283)
* Update common code used to obtain job content such it is not trucated by the unrelated record count
Signed-off-by: ddimatos <[email protected]>
* Removed unused linecount variable
Signed-off-by: ddimatos <[email protected]>
* Deprecate zos_ssh connection plugin and update zos_ping (#287)
* Update zos_ping module to support Ansible 2_9 - 2_11
Signed-off-by: ddimatos <[email protected]>
* Add copyright year update
Signed-off-by: ddimatos <[email protected]>
* Remove doc referring to the deprecated zos_ssh connection plugin
Signed-off-by: ddimatos <[email protected]>
* Remove the unsued connectionp plugin since the logic is now in zos_ping
Signed-off-by: ddimatos <[email protected]>
* Fixes PEP8 line to long error
Signed-off-by: ddimatos <[email protected]>
* Fixes PEP8 continuation line under-indented
Signed-off-by: ddimatos <[email protected]>
* Fixes PEP8 continuation line under-indented
Signed-off-by: ddimatos <[email protected]>
* Remove zos_ssh plugin from test configuration to keep from failing tests
Signed-off-by: ddimatos <[email protected]>
* Remove zos_ssh plugin references from docs since the plugin is deprecated
Signed-off-by: ddimatos <[email protected]>
* Fix closing quote
Signed-off-by: ddimatos <[email protected]>
* Updated the ping module code with some logic change on variable use and how changes are restored
Signed-off-by: ddimatos <[email protected]>
* Correct indentation
Signed-off-by: ddimatos <[email protected]>
* Temporary work around for failing test test_find_data_sets_in_volume where its expecting 5 DS yet only 1 is cataloged
Signed-off-by: ddimatos <[email protected]>
* Update zos_copy and zos_fetch to use the SSH conneciton plugin APIs, eliminate spawned SFTP process. (#286)
* Update zos_copy module changes to support use of ssh connection plugin
Signed-off-by: ddimatos <[email protected]>
* Update zos_fetch module changes to support use of ssh connection plugin
Signed-off-by: ddimatos <[email protected]>
* Add force to module spec to correct module lint error during runtime and fix changed returning null
Signed-off-by: ddimatos <[email protected]>
* Update copy module per arg spec and sanit test ignore files
Signed-off-by: ddimatos <[email protected]>
* Update test case to correctly compare changed files
Signed-off-by: ddimatos <[email protected]>
* Update test case to correctly compare changed files
Signed-off-by: ddimatos <[email protected]>
* Add stderr to the error case
Signed-off-by: ddimatos <[email protected]>
* Update test with more verbosity
Signed-off-by: ddimatos <[email protected]>
* Update test with more verbosity
Signed-off-by: ddimatos <[email protected]>
* Update test with more verbosity
Signed-off-by: ddimatos <[email protected]>
* Print out steps of a failing test case
* Syntax error in test
* Erase the ssh_args
Signed-off-by: ddimatos <[email protected]>
* Null out ssh_args
* Add debug to config
* Adding verbosity to debug docker
* Adding verbosity to debug docker
* Reduce verbosity to avoid ssh connection setting up verbosity which causes stderr to be output
* Updates to modules verbosity messages and cleanup
Signed-off-by: ddimatos <[email protected]>
* Correct syntax for default port
Signed-off-by: ddimatos <[email protected]>
* Add displaying of the playcontext verbosity
Signed-off-by: ddimatos <[email protected]>
* Added additional logic to handle the failure than can occur when users enabled verbosity > 3
Signed-off-by: ddimatos <[email protected]>
* Updated copyright year to include 2021
Signed-off-by: ddimatos <[email protected]>
* Set the ignore_stderr=True now that testing has completed
Signed-off-by: ddimatos <[email protected]>
* Update test case to remove uneeded logic
Signed-off-by: ddimatos <[email protected]>
* test case assertion back to True
Signed-off-by: ddimatos <[email protected]>
* Add documentation about co:z for copy and fetch
Signed-off-by: ddimatos <[email protected]>
* Update failing test case test_find_data_sets_in_volume to not rely on a hard coded number of data sets
Signed-off-by: ddimatos <[email protected]>
* Update plugin module doc with missing plugins and deprecated content (#288)
* Update plugin modudle doc with missing plugins and deprecated content
Signed-off-by: ddimatos <[email protected]>
* Correct Unknown target name: zos_ping
Signed-off-by: ddimatos <[email protected]>
* Bug fix not propagating non zero return codes and under certain cases job_name is null for operator action query (#290)
* Added on command failure return details , added fix for when no job_name is part of a query
Signed-off-by: ddimatos <[email protected]>
* Added comments and cleaned up some others
Signed-off-by: ddimatos <[email protected]>
* Update the failure command, typo and changed what is returned in the message field to stdout only
Signed-off-by: ddimatos <[email protected]>
* Update failing test case test_find_data_sets_in_volume so that it does not depend on hard coded value
Signed-off-by: ddimatos <[email protected]>
* Update galaxy yml to reflect the beta and other minor changes
Signed-off-by: ddimatos <[email protected]>
* Corrected doc that had random back slashes
Signed-off-by: ddimatos <[email protected]>
* Shorted short description to avoid navigation roll over
Signed-off-by: ddimatos <[email protected]>
* Update the release notes for version 1.4.0-beta.1
Signed-off-by: ddimatos <[email protected]>
* Update ignore_sftp_stderr to simplify the explanation
Signed-off-by: ddimatos <[email protected]>
* Correct URL RST syntax
Signed-off-by: ddimatos <[email protected]>
* Fix character set URLs to the updated URL
Signed-off-by: ddimatos <[email protected]>
* Update modules to use L for URLs
Signed-off-by: ddimatos <[email protected]>
* Updated module docs to correct the sphinx improper interpretation of VASM followed by an open paren
Signed-off-by: ddimatos <[email protected]>
* New generated RST from the new zos_mount module
Signed-off-by: ddimatos <[email protected]>
* Add the updated generated RST to the release for use by unified docs and ansible-doc
Signed-off-by: ddimatos <[email protected]>
* Update sphinx copyright year to include 2021
Signed-off-by: ddimatos <[email protected]>
* Update zos_mount module description to better reflect it does more than just mount
Signed-off-by: ddimatos <[email protected]>
* Add generated RST that has been updated
Signed-off-by: ddimatos <[email protected]>
* Module updates to fix linting issues
Signed-off-by: ddimatos <[email protected]>
* Correct typo in doc
Signed-off-by: ddimatos <[email protected]>
* commit generated RST for zos_job_query.rst
Signed-off-by: ddimatos <[email protected]>
* Update release notes with more enhancements
Signed-off-by: ddimatos <[email protected]>
* Update meta to match the beta release
Signed-off-by: ddimatos <[email protected]>
* Update release notes
Signed-off-by: ddimatos <[email protected]>
* Author updates to modules
Signed-off-by: ddimatos <[email protected]>
* Add the required runtime.yml
Signed-off-by: ddimatos <[email protected]>
Co-authored-by: Rich Parker <[email protected]>
Co-authored-by: RadhaV2020 <[email protected]>
Copy file name to clipboardExpand all lines: docs/source/modules/zos_blockinfile.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ zos_blockinfile -- Manage block of multi-line textual data on z/OS
16
16
17
17
Synopsis
18
18
--------
19
-
- Manage block of multi-lines in z/OS UNIX System Services (USS) files, PS(sequential data set), PDS, PDSE, or member of a PDS or PDSE.
19
+
- Manage block of multi-lines in z/OS UNIX System Services (USS) files, PS(sequential data set), PDS, PDSE, or member of a PDS or PDSE.
20
20
- This module ensures a particular block of multi-line text surrounded by customizable marker lines is present in a USS file or data set, or replaces an existing block identified by the markers.
21
21
- This is primarily useful when you want to change a block of multi-line text in a USS file or data set.
22
22
@@ -29,7 +29,7 @@ Parameters
29
29
30
30
31
31
src
32
-
The location can be a UNIX System Services (USS) file, PS(sequential data set), member of a PDS or PDSE, PDS, PDSE.
32
+
The location can be a UNIX System Services (USS) file, PS(sequential data set), member of a PDS or PDSE, PDS, PDSE.
33
33
34
34
The USS file must be an absolute pathname.
35
35
@@ -217,7 +217,7 @@ Notes
217
217
218
218
All data sets are always assumed to be cataloged. If an uncataloged data set needs to be encoded, it should be cataloged first. The :ref:`zos_data_set <zos_data_set_module>` module can be used to catalog uncataloged data sets.
219
219
220
-
For supported character sets used to encode data, refer to https://ibm.github.io/z_ansible_collections_doc/reference/supplementary_content/encode.html
220
+
For supported character sets used to encode data, refer to the `documentation <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/resources/character_set.html>`_.
221
221
222
222
When using 'with_*' loops be aware that if you do not set a unique mark the block will be overwritten on each iteration.
Copy file name to clipboardExpand all lines: docs/source/modules/zos_copy.rst
+93-24Lines changed: 93 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ content
60
60
61
61
Works only when ``dest`` is a USS file, sequential data set, or a partitioned data set member.
62
62
63
-
This is for simple values; for anything complex or with formatting, use https://docs.ansible.com/ansible/latest/modules/copy_module.html
63
+
This is for simple values; for anything complex or with formatting, use `ansible.builtin.copy <https://docs.ansible.com/ansible/latest/modules/copy_module.html>`_
64
64
65
65
If ``dest`` is a directory, then content will be copied to ``/path/to/dest/inline_copy``.
66
66
@@ -79,13 +79,13 @@ dest
79
79
80
80
If ``src`` and ``dest`` are files and if the parent directory of ``dest`` does not exist, then the task will fail.
81
81
82
-
When the ``dest`` is an existing VSA:ref:`KSDS <KSDS_module>` or VSA:ref:`ESDS <ESDS_module>`, then source can be ESDS, KSDS or RRDS. The ``dest`` will be deleted and storage management rules will be used to determine the volume where ``dest`` will be allocated.
82
+
When the ``dest`` is an existing VSAM (KSDS) or VSAM (ESDS), then source can be ESDS, KSDS or RRDS. The ``dest`` will be deleted and storage management rules will be used to determine the volume where ``dest`` will be allocated.
83
83
84
-
When the ``dest`` is an existing VSA:ref:`RRDS <RRDS_module>`, then the source must be RRDS. The ``dest`` will be deleted and storage management rules will be used to determine the volume where ``dest`` will be allocated.
84
+
When the ``dest`` is an existing VSAM (RRDS), then the source must be RRDS. The ``dest`` will be deleted and storage management rules will be used to determine the volume where ``dest`` will be allocated.
85
85
86
-
When ``dest`` is and existing VSA:ref:`LDS <LDS_module>`, then source must be LDS. The ``dest`` will be deleted and storage management rules will be used to determine the volume where ``dest`` will be allocated.
86
+
When ``dest`` is and existing VSAM (LDS), then source must be LDS. The ``dest`` will be deleted and storage management rules will be used to determine the volume where ``dest`` will be allocated.
87
87
88
-
When ``dest`` is a data set, you can override storage management rules by specifying both ``volume`` and ``model_ds``.
88
+
When ``dest`` is a data set, you can override storage management rules by specifying both ``volume`` and other optional DS specs (type, space, record size, etc).
89
89
90
90
|**required**: True
91
91
|**type**: str
@@ -131,7 +131,9 @@ force
131
131
132
132
133
133
ignore_sftp_stderr
134
-
During data transfer through sftp, the module fails if the sftp command directs any content to stderr. The user is able to override this behavior by setting this parameter to ``true``. By doing so, the module would essentially ignore the stderr stream produced by sftp and continue execution.
134
+
During data transfer through SFTP, the module fails if the SFTP command directs any content to stderr. The user is able to override this behavior by setting this parameter to ``true``. By doing so, the module would essentially ignore the stderr stream produced by SFTP and continue execution.
135
+
136
+
When Ansible verbosity is set to greater than 3, either through the command line interface (CLI) using **-vvvv** or through environment variables such as **verbosity = 4**, then this parameter will automatically be set to ``true``.
135
137
136
138
|**required**: False
137
139
|**type**: bool
@@ -167,17 +169,6 @@ mode
167
169
|**type**: str
168
170
169
171
170
-
model_ds
171
-
When copying a local file/directory to a non-existing PDS, PDSE or PS, specify a model data set to allocate the destination after.
172
-
173
-
If this parameter is not provided, the destination data set will be allocated based on the size of the local file/directory.
174
-
175
-
Only valid if ``src`` is a local file or directory and ``dest`` does not exist.
176
-
177
-
|**required**: False
178
-
|**type**: str
179
-
180
-
181
172
remote_src
182
173
If set to ``false``, the module searches for ``src`` at the local machine.
183
174
@@ -188,9 +179,11 @@ remote_src
188
179
189
180
190
181
sftp_port
191
-
Indicates which port should be used to connect to the remote z/OS system to perform data transfer.
182
+
Configuring the SFTP port used by the :ref:`zos_copy <zos_copy_module>` module has been deprecated and will be removed in ibm.ibm_zos_core collection version 1.5.0.
183
+
184
+
Configuring the SFTP port with *sftp_port* will no longer have any effect on which port is used by this module.
192
185
193
-
If this parameter is not specified, ``ansible_port`` will be used.
186
+
To configure the SFTP port used for module :ref:`zos_copy <zos_copy_module>`, refer to topic `using connection plugins <https://docs.ansible.com/ansible/latest/plugins/connection.html#using-connection-plugins>`_
194
187
195
188
If ``ansible_port`` is not specified, port 22 will be used.
196
189
@@ -231,8 +224,6 @@ validate
231
224
volume
232
225
If ``dest`` does not exist, specify which volume ``dest`` should be allocated to.
233
226
234
-
``volume`` must be used with ``model_ds``, otherwise the ``volume`` value is ignored.
235
-
236
227
Only valid when the destination is an MVS data set.
237
228
238
229
The volume must already be present on the device.
@@ -245,6 +236,84 @@ volume
245
236
|**type**: str
246
237
247
238
239
+
destination_dataset
240
+
These are settings to use when creating the destination data set
If the destination *dest* data set does not exist , this sets the primary space allocated for the data set.
257
+
258
+
The unit of space used is set using *space_type*.
259
+
260
+
|**required**: False
261
+
|**type**: str
262
+
|**default**: 5
263
+
264
+
265
+
space_secondary
266
+
If the destination *dest* data set does not exist , this sets the secondary space allocated for the data set.
267
+
268
+
The unit of space used is set using *space_type*.
269
+
270
+
|**required**: False
271
+
|**type**: str
272
+
|**default**: 3
273
+
274
+
275
+
space_type
276
+
If the destination data set does not exist, this sets the unit of measurement to use when defining primary and secondary space.
277
+
278
+
Valid units of size are ``K``, ``M``, ``G``, ``CYL``, and ``TRK``.
279
+
280
+
|**required**: False
281
+
|**type**: str
282
+
|**default**: M
283
+
|**choices**: K, M, G, CYL, TRK
284
+
285
+
286
+
record_format
287
+
If the destination data set does not exist, this sets the format of the data set. (e.g ``FB``)
288
+
289
+
Choices are case-insensitive.
290
+
291
+
|**required**: False
292
+
|**type**: str
293
+
|**default**: FB
294
+
|**choices**: FB, VB, FBA, VBA, U
295
+
296
+
297
+
record_length
298
+
The length of each record in the data set, in bytes.
299
+
300
+
For variable data sets, the length must include the 4-byte prefix area.
301
+
302
+
Defaults vary depending on format: If FB/FBA 80, if VB/VBA 137, if U 0.
303
+
304
+
|**required**: False
305
+
|**type**: int
306
+
|**default**: 80
307
+
308
+
309
+
block_size
310
+
The block size to use for the data set.
311
+
312
+
|**required**: False
313
+
|**type**: int
314
+
315
+
316
+
248
317
249
318
250
319
Examples
@@ -296,7 +365,7 @@ Examples
296
365
from: UTF-8
297
366
to: IBM-037
298
367
299
-
- name: Copy a VSAM(KSDS) to a VSAM(KSDS)
368
+
- name: Copy a VSAM(KSDS) to a VSAM(KSDS)
300
369
zos_copy:
301
370
src: SAMPLE.SRC.VSAM
302
371
dest: SAMPLE.DEST.VSAM
@@ -414,9 +483,9 @@ Notes
414
483
415
484
VSAM data sets can only be copied to other VSAM data sets.
416
485
417
-
For supported character sets used to encode data, refer to https://ansible-collections.github.io/ibm_zos_core/supplementary.html#encode
486
+
For supported character sets used to encode data, refer to the `documentation <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/resources/character_set.html>`_.
418
487
419
-
:ref:`zos_copy <zos_copy_module>` uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; Co:Z SFTP is not supported. In the case of Co:z SFTP, you can exempt the Ansible userid on ZOS from using Co:Z thus falling back to using standard SFTP.
488
+
:ref:`zos_copy <zos_copy_module>` uses SFTP (Secure File Transfer Protocol) for the underlying transfer protocol; Co:Z SFTP is not supported. In the case of Co:z SFTP, you can exempt the Ansible userid on z/OS from using Co:Z thus falling back to using standard SFTP.
- Converts the encoding of characters that are read from a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, or KSDS(VSAM data set).
20
-
- Writes the data to a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, or KSDS(VSAM data set).
19
+
- Converts the encoding of characters that are read from a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, or KSDS(VSAM data set).
20
+
- Writes the data to a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, or KSDS(VSAM data set).
21
21
22
22
23
23
@@ -48,7 +48,7 @@ to_encoding
48
48
49
49
50
50
src
51
-
The location can be a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, member of a PDS or PDSE, or KSDS(VSAM data set).
51
+
The location can be a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, member of a PDS or PDSE, or KSDS(VSAM data set).
52
52
53
53
The USS path or file must be an absolute pathname.
54
54
@@ -61,7 +61,7 @@ src
61
61
dest
62
62
The location where the converted characters are output.
63
63
64
-
The destination *dest* can be a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, member of a PDS or PDSE, or KSDS(VSAM data set).
64
+
The destination *dest* can be a UNIX System Services (USS) file or path, PS(sequential data set), PDS, PDSE, member of a PDS or PDSE, or KSDS(VSAM data set).
65
65
66
66
If the length of the PDSE member name used in *dest* is greater than 8 characters, the member name will be truncated when written out.
67
67
@@ -235,7 +235,7 @@ Notes
235
235
236
236
All data sets are always assumed to be cataloged. If an uncataloged data set needs to be encoded, it should be cataloged first.
237
237
238
-
For supported character sets used to encode data, refer to https://ansible-collections.github.io/ibm_zos_core/supplementary.html#encode
238
+
For supported character sets used to encode data, refer to the `documentation <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/resources/character_set.html>`_.
0 commit comments