I can't add a user to multiple groups, I keep getting msg: this module requires key=value arguments.
This is the piece of code I'm trying:
- name: make a new user user: name=user state=present groups="group1", "group2", "group3" comment="comment"
The documentation says: Groups= Puts the user in this comma-delimited list of groups. When set to the empty string ('groups='), the user is removed from all groups except the primary group.
I have tried with "group", 'group', and without colons and still get the same error.