ibm_zos_core icon indicating copy to clipboard operation
ibm_zos_core copied to clipboard

[Enhancement] Enable replace all in zos lineinfile

Open AndreMarcel99 opened this issue 5 months ago • 0 comments

Is there an existing issue for this?

  • [X] There are no existing issues.

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 avatar Sep 10 '24 18:09 AndreMarcel99