title: Ansible User module - how to tell it to remove expired user accounts?
body: <p>I am setting up user administration through Ansible for the first time. Can I use Ansible's user module to remove accounts that are past their expiration date? What conditional statement would I use?</p>
  
  <p>Pardon my untested pseudocode, but I am looking for something like the following:</p>
  
  <pre><code>tasks:
   - name: remove expired users
     user: name=users.key state=absent force=yes
     when: expired  &lt;----- what condition do I put here?
     with_dict: users
  </code></pre>