ansible-collections / ibm_zos_core

Red Hat Ansible Certified Content for IBM Z
78 stars 44 forks source link

[Bug] zos_apf fails if the dataset is already on the APF list #1662

Open roded opened 3 months ago

roded commented 3 months ago

Is there an existing issue for this?

Bug description

For some reason, zos_apf is failing for us when the dataset is already in the APF list:

fatal: [host]: FAILED! => {"changed": false, "rc": 8, "stderr": "BGYSC4710E ADD Error: Dataset DASD.LOADLIB volume *SMS* is already present in APF list.\n", "stderr_lines": ["BGYSC4710E ADD Error: Dataset DASD.LOADLIB volume *SMS* is already present in APF list."], "stdout": "", "stdout_lines": []}

I was expecting this module to just skip or noop if there's nothing for it to do.

IBM z/OS Ansible core Version

v1.8.0

IBM Z Open Automation Utilities

v1.2.5 (default)

IBM Enterprise Python

v3.11.x (default)

ansible-version

v2.16.x (default)

z/OS version

v2.5 (default)

Ansible module

zos_apf

Playbook verbosity output.

No response

Ansible configuration.

No response

Contents of the inventory

No response

Contents of group_vars or host_vars

No response

fernandofloresg commented 2 months ago

Zoau NAZARE-10741

fernandofloresg commented 1 month ago

Updates: We are working with ZOAU to change the behavior of the apfadm utility, is planned to be completed for ZOAU 1.3.4 and adoption should be transparent for us but validation task will take place in Q12025.