Hi,

it's quite simple what I would like to do.

Like described in the yaml code of my question:

I have a list of artifacts. Now I want to make a new list of artifacts. The 
new list has to be only a subset of the original list.
Every host has a variable called env and every host has a variable called 
product.

Let's assume for this example that product is "myartifact" and env is "at".
So the new list should only contain the item with the artifactId 
someArtifact and the item with the artifactId kiatmyartifact-properties 
because the 2 chars of env (here: at) are matching the third and fourth 
char of kiatmyartifact-properties which is not satisfied by the artifactIds 
kietmyartifact-properties and kiprmyartifact-properties.

So the condition for putting an item into the new list should be:

{{ product }}-properties not in item.artifactId
or 
{{ env }}{{ product }}-properties in item.artifactId

That's all.

Regards,
Tom

-- 
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/b801b399-03eb-4758-9e00-cfc5dfe100c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to