Escaping ampersand (&) in a string

74 views
Skip to first unread message

parnesh...@gmail.com

unread,
May 23, 2016, 9:05:34 AM5/23/16
to Ansible Project
Hi All,

I am new to ansible and using it to create some cloud images. While for the most part ansible has been great and easy to use, one of the recurring problems I am having is how to correctly escape special characters. I have worked around other cases but now I need to generate a bash script on the fly and as part of that run a job in the background. I am using blockinfile to do this. What is the correct escape sequence for &?
Reply all
Reply to author
Forward
0 new messages