Re: [ansible-project] YAML line breaks (newlines) when performing lookups of files or templates

2018-10-15 Thread Dmitriy Panteleyev
Thanks for the insight. Turns out the problem is in one of Ansible's modules, not the formatting of the lookup result. On Monday, October 15, 2018 at 10:10:36 AM UTC-6, Kai Stian Olstad wrote: > > On Saturday, 13 October 2018 18.37.22 CEST Dmitriy Panteleyev wrote: > > I've been banging my he

Re: [ansible-project] YAML line breaks (newlines) when performing lookups of files or templates

2018-10-15 Thread Kai Stian Olstad
On Saturday, 13 October 2018 18.37.22 CEST Dmitriy Panteleyev wrote: > I've been banging my head against this for two days. Maybe I'm missing > something. When fetching a YAML file or template with lookup function, all > the newlines are not preserved, but converted to '\n'. They are not conve

[ansible-project] YAML line breaks (newlines) when performing lookups of files or templates

2018-10-13 Thread Dmitriy Panteleyev
I've been banging my head against this for two days. Maybe I'm missing something. When fetching a YAML file or template with lookup function, all the newlines are not preserved, but converted to '\n'. This does not happen for other file types (like json). Is this the expected behavior? Is