Skip to content

Instantly share code, notes, and snippets.

---
- hosts: test
vars:
text_to_replace:
- { regexp: 'match1', line: 'new1' }
- { regexp: 'match2', line: 'new2' }
- { regexp: 'match3', line: 'new3' }
- { regexp: 'match4', line: 'new4' }
tasks:
- name: Collect filenames of config files (just use asterisk for all files)