- name: Editing the file
replace:
dest=/some/path
regexp=^"{{ result.stdout }}."
replace="{{ result2.stdout }}."
backup=yes
____________
I want to replace occurrences of {{result.stdout }} with {{result2.stdout}} in a file. How can I do that ?