group module not idempotent

Greetings Ansible Users,

I’m new to Ansible so sorry if this is a dumb question, but I did look and found no answer.

I am trying to add user groups to systems with the group module, but when it runs a second time, it errors because the group is already there. Aren’t (at least these built in) modules supposed to be idempotent? I can use “ignore_errors: yes”, but would like it to fail if there are real errors (like gid already in use by other group).

Am I missing something? How is this usually handled?

Thank you and best regards,

Don

Please disregard this post. The error was erroneous – user error yet again! The module works as expected. Me not so much… LOL.