How to add a newline inside a string ?

121 views
Skip to first unread message

Javier Barroso

unread,
Aug 21, 2014, 5:22:05 AM8/21/14
to ansible...@googlegroups.com
Hello,

How can I add a new line to a parameter, for example:

fail: msg="Error:\n {myoutput.stdout}"
...

\n is not working there and not clue in doc / internet search

Thank you for ansible !

Javier Barroso

unread,
Aug 23, 2014, 4:13:05 AM8/23/14
to ansible...@googlegroups.com
Hello,

Just after publish this post, I discover that I can use a variable with "\n" as value and then use {{variable}}, and it works

Thanks !
Reply all
Reply to author
Forward
0 new messages