Generally ansible frowns upon usages that are too "code-like" and tries to find some other ways to solve them that are easier to read.
Can we talk about your underlying use case that you are trying to model, to suggest an alternative, easier approach? On Thu, Nov 13, 2014 at 5:28 AM, Александр Лозовской <[email protected]> wrote: > Now i use > > - set_fact: tmpvar="{% for item in vfiles%}{% for bin in item.binaries > %}{% if bin.name+'.'+bin.ext in files.stdout_lines %}{{item.container}} > {% endif %}{% endfor %}{% endfor %}" > > - debug: var=item > with_items: > - "{{tmpvar.split()}}" > > Maybe there is an better way? > > > четверг, 13 ноября 2014 г., 11:56:34 UTC+3 пользователь Александр > Лозовской написал: >> >> Hi! >> >> I have a problem with with_items+when statement, please help me. In >> Jinja2 syntax it's like this: >> >> - debug: msg="{% for item in vfiles%}{% for bin in item.binaries %}{% if >> bin.name+'.'+bin.ext in files.stdout_lines %}{{item.container}}{% endif >> %}{% endfor %}{% endfor %}" >> >> >> P.S. Sorry for my english. >> > -- > 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/247122dc-e8b5-4049-b433-9e6a0baccdc6%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/247122dc-e8b5-4049-b433-9e6a0baccdc6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgzaMsxXpCurZrXTDjDJjHqvtUUm26h%2B_HPw9JO%3DjYh0NA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
