The way your are doing it seems ok, except you are formating it wrong
either use this form:
- name: Editing the file
replace: dest=/some/path regexp=^"{{ result.stdout }}."
replace="{{ result2.stdout }}." backup=yes
or this one:
- name: Editing the file
replace:
dest: /some/path
regexp: ^"{{ result.stdout }}."
replace: "{{ result2.stdout }}."
backup: yes
----------
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CACVha7dkAApbeDd_XpCA4%2BN1rCpNgPHiR%2BjnhhuGY%2BAQ-GoYfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.