Hi,
If we don’t have the option to use templates as the file may vary across system, is there a way to find and replace multiple lines based on a regex…something like an option in lineinfile such as ‘all’. What other mechanism can be recommended? Any reason to not have this option? And if contributed will such a change be accepted in ansible core?
Sorry to dig out an old post but Michael would an enhancement to the regex plugin to do multi line be accepted? Seems like pretty useful functionality and the re module in python has a find_iter for just the task…