How to replale replace specific character in line in Ansible




|



I am creating a dynamic playbook via template if I give



> {{



it gives error. I decided to create playbook via template with single brace and later replace with double brace.



> {



with



> {{



Kindly guide me a way to replace any character in file. Is there any way to replace character in file.



|

Sorry, I’m not understanding the above question.

Do you need to use the template module with a different delimiter because “{{” occurs naturally in your file?

See the documentation note on http://docs.ansible.com/template_module.html where it says “variable_start_string” and it will explain how to swap out the delimiter for a specific file.

Let me know if you had a different question.

Thanks!