Calling set_fact with an item loop is not going to slice the original list.
Your best best is to make a custom filter plugin to handle this.

An example might look like:

- set_fact:
     newlist: "{{ bundle_artifacts|artifact_reduce(product, env) }}"


http://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html#filter-plugins


On Thu, Sep 7, 2017 at 10:47 AM, 'Tom Bartsch' via Ansible Project <
[email protected]> wrote:

> Has anybody an idea or is this impossible?
>
> --
> 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/baae668e-5ee9-4a7e-89b3-f6a5ba8da10e%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/baae668e-5ee9-4a7e-89b3-f6a5ba8da10e%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/CAMSYDtygxJKqP7ipn%2BsoOe6Kvf%2BLsGeQy6ggcW4P2LpYXQFQpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to