ibm_zos_core icon indicating copy to clipboard operation
ibm_zos_core copied to clipboard

[Bugfix][zos_data_set] Added support for batch mode when creating gdg

Open fernandofloresg opened this issue 9 months ago • 1 comments

SUMMARY

When trying to create gdgs in batch mode the module will fail, fix no adds support for batch mode in zos_data_set and a test case for it.

Set fragment as trivial because this is fixing something that has not been released to users, just to avoid having it listed as a bug fix when releasing when is not a fix of a delivered feature.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

zos_data_set

ADDITIONAL INFORMATION
- hosts: zvm
  collections :
    - ibm.ibm_zos_core
  vars:
    ZOAU: "/zoau/v1.3.1"
    PYZ: "/allpython/3.12/usr/lpp/IBM/cyp/v3r12/pyz"
    gdg_base: "omvsadm.gdg"
  environment: "{{ environment_vars }}"
  gather_facts: False
  tasks:
    - name: Create GDG base
      zos_data_set:
        batch:
          - name: "{{ gdg_base }}"
            type: gdg
            state: present
            limit: 3
          - name: "{{ gdg_base }}a"
            type: gdg
            state: present
            limit: 3
          - name: "{{ gdg_base }}b"
            type: gdg
            state: present
            limit: 3
      register: result

    - name: print result
      debug:
        msg: "{{ result }}"

fernandofloresg avatar May 21 '24 21:05 fernandofloresg