How to replale replace specific character in line in Ansible

114 views
Skip to first unread message

Faisal Ali Rabbani

unread,
Jun 2, 2014, 5:16:04 AM6/2/14
to ansible...@googlegroups.com

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.

Michael DeHaan

unread,
Jun 6, 2014, 8:16:57 AM6/6/14
to ansible...@googlegroups.com
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!


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b30e6de9-3acb-4d51-a75f-dd6b7327fbd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages