it mostly depends on how you have the data, supposing students is a
list with each student being a dictionary with it's properties:

is expired a key of each student? if it is a boolean, as you have it
it should look like this:

user: name=item.name ...
when: item.expired
with_items: students

 if you need an expression you need to give us the criteria which you
follow to determine if a user is expired. For example:

user: name=item.name ...
when: item.graduates > lookup('pipe', 'date +%s')
with_items: students

# assumes you keep the epoch of when he graduates

So it just needs to be an expression that evaluates to true or false,
the exact expression depends on the structure of your data.


-- 
Brian Coca

-- 
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/CAJ5XC8%3DAiYLEmntsbKbkAB2DiwQxBW2XcT164sozemdmqbhYuQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to