ansible-collections / ibm_zos_core

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

[Bug]Zos_blockinfile_not use marker_begin and end #1678

Closed AndreMarcel99 closed 2 months ago

AndreMarcel99 commented 3 months ago

Is there an existing issue for this?

Bug description

When using a new marker_begin and marker_end in insert when removing the new markers are no passing to the absent case. So these case will fail.

    - name: Remove text from Scripts
      zos_blockinfile:
        marker_begin: "NEW BEGIN"
        marker_end: "NEW END"
        marker: "* {mark} ANSIBLE MANAGED BLOCK"
        src: "{{ tmp_ds }}"
        state: absent
      ignore_errors: True

IBM z/OS Ansible core Version

v1.11.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

No response

Playbook verbosity output.

No response

Ansible configuration.

No response

Contents of the inventory

No response

Contents of group_vars or host_vars

No response

AndreMarcel99 commented 2 months ago

I added one point because is a change from 1.8 to latest version