On Monday, 23 April 2018 09:50:04 UTC+3, Kai Stian Olstad wrote:
>
> On 20.04.2018 16:01, Vlad wrote: 
> > On Friday, 20 April 2018 16:44:21 UTC+3, Vlad wrote: 
> >> 
> > 
> > I have another question, after I applied the changes, now every line in 
> > the 
> > files contains a new empty line. It is possible to be removed ? 
> > 
> > {% for key, value in vars[item].iteritems()| sort %} 
> > {{ key }}= {{ value }} 
> > {% endfor %} 
> > 
> > 
> > log4j.appender.MAIN_APPENDER= org.apache.log4j.RollingFileAppender 
> > 
> > log4j.appender.MAIN_APPENDER.File= /tmp/log4j.log 
> > 
> > log4j.appender.MAIN_APPENDER.MaxBackupIndex= 5 
>
> I don't know why since you shouldn't unless you input contain extra 
> whitespaces. 
>
> You can try to use {%- and/or -%} to remove whitespaces, more on the 
> subject here 
> http://jinja.pocoo.org/docs/2.10/templates/#whitespace-control 
>
>
> -- 
> Kai Stian Olstad 
>

Thank you Kai for all the support, works OK 

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f2ad96cb-a48d-437b-b10c-f3f67e271663%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to