# How to replale replace specific character in line in Ansible

**URL:** <https://forum.ansible.com/t/how-to-replale-replace-specific-character-in-line-in-ansible/15386>\
**Category:** Ansible Project\
**Created:** [June 2, 2014, 9:16am UTC](https://forum.ansible.com/t/how-to-replale-replace-specific-character-in-line-in-ansible/15386 "2014-06-02T09:16:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faisal\_Ali\_Rabbani](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Faisal\_Ali\_Rabbani](https://forum.ansible.com/u/Faisal_Ali_Rabbani)\
**Post date:** [June 2, 2014, 9:16am UTC](https://forum.ansible.com/t/how-to-replale-replace-specific-character-in-line-in-ansible/15386/1 "2014-06-02T09:16:04Z")

</div>

> |   
>   
>   
>   
> 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.  
>   
>   
>   
> |

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [June 6, 2014, 12:16pm UTC](https://forum.ansible.com/t/how-to-replale-replace-specific-character-in-line-in-ansible/15386/2 "2014-06-06T12:16:53Z")

</div>

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](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!
