ansible-collections / ibm_zos_core

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

[Enhancement] Enable replace all in zos lineinfile #1685

Open AndreMarcel99 opened 2 months ago

AndreMarcel99 commented 2 months ago

Is there an existing issue for this?

Enabler description

- name: Ensure value of a variable in the sequential data set
  zos_lineinfile:
    src: SOME.DATA.SET
    state: present 
    regexp: '^VAR='
    line: VAR="some value"

Will only replace the last found not all cases, users ask for that option

Ansible module

zos_lineinfile

AndreMarcel99 commented 1 month ago

[NAZARE-10771]