I am setting up user administration through Ansible for the first time. I 
handle large batches of users a few times a year, since I work for a 
college. Can I use Ansible's user module to remove expired accounts? What 
conditional statement would I use?

Pardon my untested pseudocode, but I am looking for something like the 
following:

tasks:
 - name: remove expired users
   user: name=students.key state=absent force=yes
   when: expired  <----- what condition do I put here?
   with_dict: students


-- 
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/6335f55d-13dc-4a38-b04f-7c57cfb12ee1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to