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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to