Skip to content

Commit a2c1f48

Browse files
Merge pull request #2063 from ansible-collections/rel-tasks-v1.14.0-beta.1
[v1.14.0-beta.1] Release tasks for v1.14.0 beta.1
2 parents e7ffe6d + 5211bed commit a2c1f48

File tree

107 files changed

+9926
-2632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+9926
-2632
lines changed

.ansible-lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
################################################################################
2-
# Copyright (c) IBM Corporation 2025
2+
# Copyright (c) IBM Corporation 2024, 2025
33
################################################################################
44
# For additonal doc, see https://ansible.readthedocs.io/projects/lint/configuring/
55
exclude_paths:

.github/ISSUE_TEMPLATE/bug_issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Report a bug
22
description: Request that a bug be reviewed. Complete all required fields.
33
title: "[Bug] Enter description"
44
labels: ["Bug", "Needs Triage"]
5-
title: "[Bug] Enter description"
6-
labels: ["Bug", "Needs Triage"]
75
assignees:
86
- IBMAnsibleHelper
97
body:
@@ -35,6 +33,8 @@ body:
3533
description: Which version of z/OS Ansible core collection are you using. If you are unsure, review the [documentation](https://ibm.github.io/z_ansible_collections_doc/faqs/faqs.html#how-do-i-update-a-collection-to-the-latest-version).
3634
multiple: false
3735
options:
36+
- v1.13.0
37+
- v1.13.0-beta.1
3838
- v1.12.0
3939
- v1.12.0-beta.1
4040
- v1.11.1

.github/ISSUE_TEMPLATE/collaboration_issue.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ body:
4242
description: Which version of z/OS Ansible core collection are you using. If you are unsure, review the [documentation](https://ibm.github.io/z_ansible_collections_doc/faqs/faqs.html#how-do-i-update-a-collection-to-the-latest-version).
4343
multiple: false
4444
options:
45+
- v1.13.0
46+
- v1.13.0-beta.1
4547
- v1.12.0
4648
- v1.12.0-beta.1
4749
- v1.11.1

.github/ISSUE_TEMPLATE/doc_issue.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ body:
3434
description: Which version of z/OS Ansible core collection are you using. If you are unsure, review the [documentation](https://ibm.github.io/z_ansible_collections_doc/faqs/faqs.html#how-do-i-update-a-collection-to-the-latest-version).
3535
multiple: false
3636
options:
37+
- v1.13.0
38+
- v1.13.0-beta.1
3739
- v1.12.0
3840
- v1.12.0-beta.1
3941
- v1.11.1

CHANGELOG.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,59 @@ ibm.ibm\_zos\_core Release Notes
44

55
.. contents:: Topics
66

7+
v1.14.0-beta.1
8+
==============
9+
10+
Release Summary
11+
---------------
12+
13+
Release Date: '2025-04-30'
14+
This changelog describes all changes made to the modules and plugins included
15+
in this collection. The release date is the date the changelog is created.
16+
For additional details such as required dependencies and availability review
17+
the collections `release notes <https://ibm.github.io/z_ansible_collections_doc/ibm_zos_core/docs/source/release_notes.html>`__
18+
19+
Minor Changes
20+
-------------
21+
22+
- zos_copy - Adds ``large`` as a choice for ``type`` in ``dest_data_set``. (https://github.com/ansible-collections/ibm_zos_core/pull/1938)
23+
- zos_copy - Adds logging of Jinja rendered template content when `use_template` is true and verbosity level `-vvv` is used. (https://github.com/ansible-collections/ibm_zos_core/pull/1968).
24+
- zos_copy - Adds support for copying in asynchronous mode inside playbooks. (https://github.com/ansible-collections/ibm_zos_core/pull/1953).
25+
- zos_copy - Removes the need to allow READ access to MVS.MCSOPER.ZOAU to execute the module by changing how the module checks if a data set is locked. (https://github.com/ansible-collections/ibm_zos_core/pull/1917).
26+
- zos_job_output - Add execution_time return value in the modules response. (https://github.com/ansible-collections/ibm_zos_core/pull/1891).
27+
- zos_job_query - Add execution_time return value in the modules response. (https://github.com/ansible-collections/ibm_zos_core/pull/1891).
28+
- zos_job_query - Loads correct bytes size value for dds when using zoau 1.3.4 or later (https://github.com/ansible-collections/ibm_zos_core/pull/1868).
29+
- zos_job_query - System and Subsystem are now retrieved from JES. (https://github.com/ansible-collections/ibm_zos_core/pull/1900).
30+
- zos_job_submit - Adds logging of Jinja rendered template content when `use_template` is true and verbosity level `-vvv` is used. (https://github.com/ansible-collections/ibm_zos_core/pull/1962).
31+
- zos_job_submit - Add execution_time return value in the modules response. (https://github.com/ansible-collections/ibm_zos_core/pull/1891).
32+
- zos_job_submit - Loads correct bytes size value for dds when using zoau 1.3.4 or later (https://github.com/ansible-collections/ibm_zos_core/pull/1868).
33+
- zos_script - Adds error message for when remote source does not exist. (https://github.com/ansible-collections/ibm_zos_core/pull/1894).
34+
- zos_script - Adds logging of Jinja rendered template content when `use_template` is true and verbosity level `-vvv` is used. (https://github.com/ansible-collections/ibm_zos_core/pull/1968).
35+
- zos_script - Adds support for running local and remote scripts in asynchronous mode inside playbooks. (https://github.com/ansible-collections/ibm_zos_core/pull/1934).
36+
- zos_script - Support automatic removal of carriage return line breaks [CR, CRLF] when copying local files to USS. (https://github.com/ansible-collections/ibm_zos_core/pull/1954).
37+
- zos_stat - Adds support to query data sets using their aliases. (https://github.com/ansible-collections/ibm_zos_core/pull/2048)
38+
- zos_unarchive - Adds support for unarchiving files in asynchronous mode inside playbooks. (https://github.com/ansible-collections/ibm_zos_core/pull/2020).
39+
- zos_zfs_resize - Adds validations for trace destination dataset used for trace verbose. (https://github.com/ansible-collections/ibm_zos_core/pull/1897).
40+
41+
Bugfixes
42+
--------
43+
44+
- zos_apf - When trying to add a library into the APF list that was already added, the module would fail. Fix now will not fail the module, and will inform the user that the library is already on the APF list. (https://github.com/ansible-collections/ibm_zos_core/pull/1893)
45+
- zos_copy - Previously, if the dataset name included special characters such as $, validation would fail when force_lock was false. This has been changed to allow the use of special characters when force_lock option is false. (https://github.com/ansible-collections/ibm_zos_core/pull/1908)
46+
- zos_copy - When ``asa_text`` was set to true at the same time as ``force_lock``, a copy would fail saying the destination was already in use. Fix now opens destination data sets up with disposition SHR when ``force_lock`` and ``asa_text`` are set to true. (https://github.com/ansible-collections/ibm_zos_core/pull/1941).
47+
- zos_copy - the carriage return characters were being removed from only first 1024 bytes of a file. Now fixed that issue to support removal of the carriage return characters from the complete file content if the file size is more than 1024 bytes. (https://github.com/ansible-collections/ibm_zos_core/pull/1954).
48+
- zos_data_set - Module would fail when trying to delete a non-existent Generation Data Group. Fix now provides a successful response with `changed=false`. (https://github.com/ansible-collections/ibm_zos_core/pull/1971).
49+
- zos_data_set - Module would fail with TypeError when trying to replace an existing GDG. Fix now allows to replacing a GDG. (https://github.com/ansible-collections/ibm_zos_core/pull/1964).
50+
- zos_job_output - When searching for a job name, module performed a '*' (find all), then filtered the results. Fix now asks for specific job name, making the return faster and more precise. (https://github.com/ansible-collections/ibm_zos_core/pull/1916).
51+
- zos_job_query - When searching for a job name, module performed a '*' (find all), then filtered the results. Fix now asks for specific job name, making the return faster and more precise. (https://github.com/ansible-collections/ibm_zos_core/pull/1916).
52+
- zos_job_submit - When searching for a job name, module performed a '*' (find all), then filtered the results. Fix now asks for specific job name, making the return faster and more precise. (https://github.com/ansible-collections/ibm_zos_core/pull/1916).
53+
- zos_mount - Module failed when using persistent option with a data set that contains non UTF-8 characters. Fix now can use a data set with non UTF-8 characters as data_store. (https://github.com/ansible-collections/ibm_zos_core/pull/1871).
54+
55+
New Modules
56+
-----------
57+
58+
- ibm.ibm_zos_core.zos_stat - Retrieve facts from MVS data sets, USS files, aggregates and generation data groups
59+
760
v1.13.0
861
=======
962

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ All releases will meet the following test criteria.
135135
* ansible-core v2.15.x
136136
* Python 3.11.x
137137
* IBM Open Enterprise SDK for Python 3.12.x
138-
* IBM Z Open Automation Utilities (ZOAU) 1.3.3.x
138+
* IBM Z Open Automation Utilities (ZOAU) 1.3.4.x
139139
* z/OS V2R5
140140

141141
## Contributing

ac

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,84 @@ venv_stop(){
19091909
venv_pid=`ps -ef |grep $venv_tty | grep -v "grep" | grep "/bin/sh -i" | awk '{print $3}'`
19101910
kill -9 $venv_pid > /dev/null 2>&1
19111911
}
1912+
#->venv-refresh:
1913+
## Refresh managed virtual environments with the latest scripts
1914+
## Usage: ac --refresh-env [--all] [--name <venv-name>]
1915+
## Options:
1916+
## --all - Refresh all environments
1917+
## --name - Specific environment to refresh
1918+
## Example:
1919+
## $ ac --refresh-env # Refresh the active environment
1920+
## $ ac --refresh-env --all # Refresh all environments
1921+
## $ ac --refresh-env=all # Refresh all environments
1922+
## $ ac --refresh-env --name venv-2.18 # Refresh a specific environment (e.g., venv-2.18)
1923+
## $ ac --refresh-env=venv-2.18 # Refresh a specific environment (e.g., venv-2.18)
1924+
venv_refresh() {
1925+
local raw_arg="$1" # Value from --refresh-env=...
1926+
local all_flag="$2" # --all option value
1927+
local name_arg="$3" # --name option value
1928+
local mode
1929+
local env_name
1930+
local target_envs=()
1931+
local source_dir="${PWD}/scripts"
1932+
1933+
# Validate source files
1934+
local required_files=("profile.sh" "mounts.sh" "mounts.env")
1935+
for f in "${required_files[@]}"; do
1936+
[[ ! -f "${source_dir}/${f}" ]] && message_error "Missing source file: ${source_dir}/${f}" && exit_all
1937+
done
1938+
1939+
# Argument resolution priority: 1. = syntax 2. --all/--name flags
1940+
if [ -n "$raw_arg" ]; then
1941+
# Handle --refresh-env=value syntax
1942+
case "$raw_arg" in
1943+
all)
1944+
mode="all"
1945+
;;
1946+
venv-*)
1947+
mode="named"
1948+
env_name="$raw_arg"
1949+
;;
1950+
*)
1951+
message_error "Invalid refresh-env argument: $raw_arg"
1952+
exit_all
1953+
;;
1954+
esac
1955+
elif [ "$all_flag" = "true" ]; then
1956+
mode="all"
1957+
elif [ -n "$name_arg" ]; then
1958+
mode="named"
1959+
env_name="$name_arg"
1960+
else
1961+
mode="active"
1962+
fi
1963+
1964+
# Mode execution
1965+
case "$mode" in
1966+
all)
1967+
for env in "${VENV_HOME_MANAGED}"/venv-*; do
1968+
[[ -d "$env" ]] && target_envs+=("$env")
1969+
done
1970+
[[ ${#target_envs[@]} -eq 0 ]] && message_error "No managed environments found" && exit_all
1971+
;;
1972+
named)
1973+
[[ -z "$env_name" ]] && message_error "Environment name required" && exit_all
1974+
env=$(validate_venv "$env_name")
1975+
target_envs+=("$env")
1976+
;;
1977+
active)
1978+
ensure_managed_venv_exists "--refresh-env"
1979+
target_envs+=("$VENV")
1980+
;;
1981+
esac
19121982

1983+
# Perform file operations
1984+
for env in "${target_envs[@]}"; do
1985+
message "Refreshing: $(basename "$env")"
1986+
cp -v "${source_dir}/profile.sh" "${source_dir}/mounts.sh" "${source_dir}/mounts.env" "$env/"
1987+
chmod +x "$env/mounts.sh" "$env/profile.sh"
1988+
done
1989+
}
19131990
# ==============================================================================
19141991
# Main arg parsing
19151992
# ==============================================================================
@@ -2033,6 +2110,18 @@ while true; do
20332110
ensure_managed_venv_exists $1
20342111
option_submitted="--venv-stop"
20352112
;;
2113+
--refresh-env|--refresh-env=?*) # command
2114+
ensure_managed_venv_exists $1
2115+
option_submitted="--refresh-env"
2116+
2117+
# Capture raw argument value if using = syntax
2118+
if [[ "$1" == *=* ]]; then
2119+
refresh_arg="${1#*=}"
2120+
else
2121+
refresh_arg=""
2122+
fi
2123+
;;
2124+
20362125
# End of main command list.
20372126
# Start of command options.
20382127
# Used by:
@@ -2383,4 +2472,6 @@ elif [ "$option_submitted" ] && [ "$option_submitted" = "--venv-start" ] ; then
23832472
venv_start $name
23842473
elif [ "$option_submitted" ] && [ "$option_submitted" = "--venv-stop" ] ; then
23852474
venv_stop $name
2475+
elif [ "$option_submitted" = "--refresh-env" ]; then
2476+
venv_refresh "$refresh_arg" "$all" "$name"
23862477
fi

changelogs/.plugin-cache.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ plugins:
115115
name: zos_script
116116
namespace: ''
117117
version_added: 1.8.0
118+
zos_stat:
119+
description: Retrieve facts from MVS data sets, USS files, aggregates and generation
120+
data groups
121+
name: zos_stat
122+
namespace: ''
123+
version_added: 1.14.0
118124
zos_tso_command:
119125
description: Execute TSO commands
120126
name: zos_tso_command
@@ -130,9 +136,14 @@ plugins:
130136
name: zos_volume_init
131137
namespace: ''
132138
version_added: 1.6.0
139+
zos_zfs_resize:
140+
description: Resize a zfs data set.
141+
name: zos_zfs_resize
142+
namespace: ''
143+
version_added: 1.13.0
133144
netconf: {}
134145
shell: {}
135146
strategy: {}
136147
test: {}
137148
vars: {}
138-
version: 1.12.0-beta.1
149+
version: 1.14.0-beta.1

0 commit comments

Comments
 (0)