title: How to remove user from a specified group in Ansible?
body: <p>Let's assume <code>user01</code> has two groups defined: <code>groupA</code> and <code>groupB</code> (in addition to the primary group).</p>
  
  <p>I can add the account to <code>groupC</code> (ensure <code>user01</code> belongs to <code>groupC</code>) using:</p>
  
  <pre><code>- user: name=user01 groups=groupC append=yes
  </code></pre>
  
  <p>How can I remove <code>user01</code> from <code>groupB</code> (ensure <code>user01</code> does not belong to <code>groupB</code>) without specifying all the groups the account should belong to?</p>