User module always reports changed when using 'groups'

Hi,

Looks like I’ve run into a bug:

  • name: create users
    user: name=“{{ item.owner|default(item.name) }}” group=“{{item.group|default(item.name)}}” groups=“aap”
    with_items:
  • “{{ user_list }}”

Will always report ‘changed’, if I take out the ‘groups’ it works as expected.

Regards,
Nico

Minor addition:

This only happens if the ‘groups’ content is the same as ‘group’.

This is already a known thing: https://github.com/ansible/ansible/issues/6854