ansible-collections / ibm_zos_core

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

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

Open roded opened 1 month ago

roded commented 1 month 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 3 days ago

Zoau NAZARE-10741