User module always reports changed when using 'groups'

77 views
Skip to first unread message

Nico K.

unread,
Jul 18, 2014, 5:13:30 AM7/18/14
to ansible...@googlegroups.com
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

Nico K.

unread,
Jul 18, 2014, 5:16:23 AM7/18/14
to ansible...@googlegroups.com
Minor addition:

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

Op vrijdag 18 juli 2014 11:13:30 UTC+2 schreef Nico K.:

Michael DeHaan

unread,
Jul 18, 2014, 7:48:48 AM7/18/14
to ansible...@googlegroups.com
This is already a known thing:  https://github.com/ansible/ansible/issues/6854






--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/175146f9-3752-4533-90b6-91537560ccde%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages